Regex Tester.
See every JavaScript regex match, group, and replacement before it reaches your code.
//
JavaScript syntax. Flags: d g i m s u v y.MATCH PREVIEW
Highlighted text
CAPTURES
Match details
REPLACE
Replacement result
Ready.
FIELD NOTES / 008
Make invisible matches visible.
Test the exact JavaScript expression and flags your app will use. Named and numbered capture groups are listed for every match.
Good to know
Can a regular expression freeze a page?
Pathological patterns can take a long time. This tester evaluates matches in a Web Worker and stops work that exceeds its time limit.
Which regex flavor is this?
JavaScript, as implemented by your browser. Other languages can interpret escapes, flags, and advanced features differently.