A regular expression (regex) is a small language that uses a set of special characters to match, find, and extract text that fits a pattern. This tool lets you test regex online: enter a pattern and test text, see every match highlighted instantly, along with capture groups and indexes. It also ships with 17 common regex quick presets (Chinese characters, email, URL, phone, QQ, postal code, ID card, dates, and various integers/floats) for fast verification and copying.
[abc] matches a/b/c, [^abc] negates, [a-z] is a range\d digit, \w word char, \s whitespace, . any char except newline* 0+, + 1+, ? 0 or 1, {n,m} n to m times^ start, $ end, \b word boundary(...) capture group, (?:...) non-capturing, | org global, i case-insensitive, m multiline, s dot matches newline[\u4e00-\u9fa5][\w.%+-]+@[\w.-]+\.[A-Za-z]{2,}[a-zA-Z]+://[^\s]*\d{3}-\d{8}|\d{4}-\d{7}\d{17}[\dXx]|\d{15}\d{4}-\d{1,2}-\d{1,2}[1-9]\d*[1-9]\d*\.\d*|0\.\d*[1-9]\d*