any-rule is a powerful, open-source library of commonly used regular expressions. It currently includes 82 commonly used regex validation patterns, such as mobile phone number validation, ID card number validation, unified social credit code validation, and Chinese and English character validation. Regular expressions are hard to remember offhand, so we just look them up when we need them.
any-rule is a powerful, open-source library of commonly used regular expressions. It currently includes 82 commonly used regex validation patterns, such as mobile phone number validation, ID card number validation, unified social credit code validation, and Chinese/English validation.
It’s hard to remember regular expressions directly, so we usually search for them when we need them. This library collects regular expression validations for various types of information and continuously updates the validation rules for the latest information. If you have better validation rules, you can also submit them to the repository author.
Supports multiple platforms: Web / VS Code / IDEA / Alfred Workflow • To date, 64 commonly used information regex patterns have been included • The web version supports rule search, online validation, and copying regex validation rules • The code editor plugin supports entering information rules to generate the corresponding regular expressions
The author also thoughtfully provides a visual diagram option. Whenever you select a regular expression in any-rule, a prompt pops up where you can click “Regex Diagram”..
GitHub open-source repository: https://github.com/any86/any-rule