๐Ÿ”Ž

Regex Tester

Test a regular expression against sample text with live match highlighting.

Advertisement
Ad slot: top
/ /
0Matches
0Capture groups

Match details

#MatchIndexGroups

Replace

Advertisement
Ad slot: incontent

About the Regex Tester

Type a pattern and see every match highlighted in your test text as you type, with a table of match positions and capture groups. Flags can be toggled with buttons instead of remembering the letters.

A replace box below shows what your pattern would produce as a substitution, with $1 and $2 group references supported.

Frequently asked questions

Which regex flavour is this?

JavaScript's, which is close to PCRE for everyday patterns. Lookbehind and named groups work in modern browsers.

Why does my pattern match nothing?

The most common causes are a missing global flag, an unescaped special character such as a dot or bracket, and case sensitivity.

Related tools

All Developer โ†’
Advertisement
Ad slot: bottom