๐ Online Regex Generator and Validator
Online regular expression generation and verification tool, supports common regex presets, global matching, case-insensitive, real-time highlighting of match results.
//g
Common Regex Presets
Match Result
Waiting for input...
Regex Common Reference
Common Regular Expressions
| Name | Expression |
|---|---|
| Match Chinese Characters | [\u4e00-\u9fa5] |
| Match Email | \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* |
| Match URL | https?://[\w\-]+(\.[\w\-]+)+[\w\-.,@?^=%&:/~+#]* |
| Match Phone Number | 1[3-9]\d{9} |
| Match ID Card Number | \d{17}[\dXx] |
| Match IPv4 Address | ((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?) |
| Match Positive Integer | [1-9]\d* |
| Match Money (2 decimal places) | \d+\.\d{2} |
| Match Empty Line | \n\s*\r |