Regular expression artifact, Baidu will no longer be used

Time:2022-5-25

When a project needs regular expressions, what would you do? Open Baidu and directly search for “regular expression of mobile phone number”, copy it to the IDE and run it to see if it does not meet your expectations?

Is it often because you can’t find a suitable expression.
Today we recommend an open source project called:I hate regex。 The open source Author hated regular expressions and decided to make a regular expression memo and develop a regular expression search website.

Regular expression artifact, Baidu will no longer be used

For example, if you search for username, the regular expression applicable to username will be displayed.
Regular expression artifact, Baidu will no longer be used

Regular expression applicable to mobile phone number:
Regular expression artifact, Baidu will no longer be used

The regular expression applicable to the email address, and the matching string will also be displayed in the test area.
Regular expression artifact, Baidu will no longer be used

It can not only display what the regular expression of a scene is, but also visually display the regular expression.
Regular expression artifact, Baidu will no longer be used

And explain the syntax in regular.

Regular expression artifact, Baidu will no longer be used

Online address:https://ihateregex.io
Project:https://github.com/geongeorge/i-hate-regex
Website:https://ihateregex.io/expr/phone