Regex Tester Pro

Test .NET regex with capture groups, named groups, replacements, presets and a built-in cheat sheet.

Presets:
Enter a pattern and test string.
Regex cheat sheet
SectionTokenMeaning
Anchors ^ Start of string (or line in multiline mode)
Anchors $ End of string (or line in multiline mode)
Anchors \b Word boundary
Anchors \B Non-word boundary
Char classes \d Digit
Char classes \D Non-digit
Char classes \w Word char [A-Za-z0-9_]
Char classes \s Whitespace
Char classes [abc] Any of a, b or c
Char classes [^abc] Any except a, b, c
Quantifiers * Zero or more (greedy)
Quantifiers + One or more
Quantifiers ? Optional
Quantifiers {n,m} Between n and m
Quantifiers *? Lazy / non-greedy
Groups (...) Capturing group
Groups (?:...) Non-capturing group
Groups (?<name>...) Named capturing group
Lookaround (?=...) Positive lookahead
Lookaround (?!...) Negative lookahead
Lookaround (?<=...) Positive lookbehind
Lookaround (?<!...) Negative lookbehind
Replacement $1, $2 Numbered group
Replacement ${name} Named group
Replacement $& Entire match
Replacement $$ Literal dollar sign

About this tool

Build and debug .NET-flavour regular expressions. Pattern, test string and flags (i / m / s / x). Every match is listed with its capture groups; named groups (?<name>…) get their own table; a replacement preview applies a template ($1, ${name}, $&, $$). 7 pre-canned patterns (email, URL, ISO date, hex color, UUID, semver, IPv4) and a cheat-sheet pane covering anchors, quantifiers, character classes and lookaround.

An unhandled error has occurred. Reload ×