Online Regex Tester — Live Matching, Groups & Replace

Live matching / capture groups / replace

//

Replace

Common Patterns

Email: \w+@\w+\.\w+ | Mobile: 1[3-9]\d{9} | IP: \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | Chinese: [\u4e00-\u9fa5]+

Related Uses

When writing a regex, use Text Replace to verify bulk replacement; for JSON strings you can also use JSON Formatter to inspect the structure.

FAQ

How do I test a regular expression?

Enter a regex and test text in the input boxes; the tool shows matches in real time, including match positions, matched content and capture groups.

What are some common regular expressions?

Common patterns include email \w+@\w+\.\w+, mobile 1[3-9]\d{9}, IP \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}, and Chinese characters [\u4e00-\u9fa5]+.

Does the regex tester support replacement?

Yes. Enter the replacement text and click Replace to batch-replace all matches, useful for text cleaning and format conversion.