Developer tools

Regex playground

Find a pattern. See every match.

Regex playgroundAlways free
/g
JavaScript · Live matching
Test text
Up to 100 KB · 1,000 preview matches
Find your pattern.

Enter an expression or choose an example to see matches.

Pattern cheat sheet
\d0–9
\wA–Z, a–z, 0–9, _
\sWhitespace
[abc]Any listed character
^…$Start and end
* + ?Zero or more · one or more · optional
(…) $1
(?<name>…)$<name>

Privacy comes firstFree to get startedEveryday tools, free forever