Skip to content
Web Codes Stack
Explore Free Tools

Regex Tester

Test JavaScript regular expressions, highlight matches, and inspect capture groups in your browser.

Pattern and test text

g finds all matches. i ignores case.

Matches

Highlighted text


        

Match details

Test JavaScript regular expressions

Enter the pattern without enclosing slashes, put any flags in the Flags field, and select Test regex. Without g, the tester reports the first match.

Use m for line boundaries, s to let . match line breaks, and u for Unicode-aware matching. In browsers that support them, v enables Unicode sets and d adds capture-group offsets. Each range uses zero-based UTF-16 offsets with an exclusive end. JavaScript RegExp reference

The tester runs patterns in a background worker. Very slow tests stop automatically. Each test supports up to 50,000 characters of text and displays up to 200 matches.