Regex Test
Write a regex pattern, test it against text; matches are highlighted, capture groups and match counts are listed instantly. Free, client-side.
About Regex Tests
Regular expressions (regular expression / regexRegex is a powerful language standard used to search for, verify, or extract specific patterns within text. The same syntax applies to simple checks like email, phone number, or URL verification, as well as more advanced tasks like log file parsing or complex text transformations. This free Regex Test tool lets you instantly test the pattern you've typed on real text.
Tool, global (g), case-insensitive (i), many lines (m), dot-all (s / dotAll) and Unicode (u) It supports the flags. All matching sections are highlighted in color within the text. If there are any matching groups,(group)The values are listed in a separate table with their numbers, so you can easily see which value the group captured. When you enter an invalid pattern, the tool immediately gives a warning and does not crash the application.
All processing happens in your browser; your text is not sent to any server. JavaScript is native. RegExp Because it uses a regex engine, the results are perfectly compatible with JavaScript environments. You can use this tool as a practice area in your regex learning process, or to live test the pattern you will use in your project.
Step by step
- Regex Pattern Type the expression you want to test in the box (slash lines)
/(without, just the pattern). - According to your needs flags Choose: g all matches, i case-insensitive, m many lines, s dot-all, u Unicode.
- Test Text Paste or type the text you want to use to try out the pattern in the designated area.
- Results are updated instantly: matches is emphasizedThe number of matches is displayed.
- If there are capture groups, under each match Group table It appears; the group number and values are listed.
Frequently Asked Questions
^ and $ It is interpreted as a line break/newsline. s: dotAll — dot (.It also maps the newline character. u: Unicode — provides full Unicode support.(\d+)For each match, the contents of these groups are listed in separate tables as Group 1, Group 2… and so on. Unnamed and named groups ((?...) ) is supported.