/ /

About the Regex Tester

Regular expressions (regex) are patterns used to match character combinations in text. This tester lets you write a pattern, set flags, and instantly see all matches highlighted in your test string — no need to run code.

Common flags

Capture groups

Parentheses create capture groups. The tester shows each group value ($1, $2 etc.) next to every match in the match list.

Frequently Asked Questions

What regex flavour does this use?
JavaScript ECMAScript RegExp — supports groups, lookaheads, lookabehinds, and named captures.
What do the flags mean?
g=global, i=case-insensitive, m=multiline, s=dotAll, u=unicode, y=sticky.
Are my patterns saved?
No. Everything runs in your browser. Nothing is stored or sent anywhere.
Developer Tools
Ad