Regular Expression Tester
Test your JavaScript regular expressions in real time. Matches are highlighted as you type.
Pattern & Flags
/
/
Test String
Highlighted Matches
Match List
About the Regex Tester
Regular expressions (regex) are powerful patterns used to match, search, and manipulate text. This tester uses JavaScript's native RegExp engine, so it works exactly as it would in browser JavaScript or Node.js.
Regex flags explained
- g — Global: find all matches, not just the first.
- i — Case-insensitive:
Amatches bothAanda. - m — Multiline:
^and$match the start/end of each line. - s — DotAll:
.matches newline characters too. - u — Unicode: enables full Unicode support.