Test regular expressions against sample text with highlighted matches, capture groups, and a syntax reference.
Enter a pattern to inspect matches.
Enter a pattern and test text to see the matches here.
Build a JavaScript regular expression and see its matches, capture groups, and replacement output against sample text.
Results update as you edit. Matching runs in your browser. The g flag finds every match, i ignores case, m changes line anchors, s lets a dot match line breaks, u enables Unicode matching, and y requires a match at the current position.
Use it to inspect a pattern against sample input before using it in JavaScript.