.NET Regex Tester

.NET Regex Tester

Test C# regular expressions on the real .NET System.Text.RegularExpressions engine. It runs in your browser with WebAssembly, so your patterns and test data never leave your browser.

Runs locally
Regex tester input
Samples
โ€”
Options
RegexOptions.IgnoreCaseCase-insensitive matching. Same as the inline option (?i). RegexOptions.Multiline^ and $ match at the start and end of each line, not just the whole input. Inline: (?m). RegexOptions.SinglelineThe dot (.) also matches \n. Inline: (?s).

Use $1, $2 for numbered groups, ${name} for named groups.

Ctrl + Enter runs

One test per line; each line is matched on its own. The gutter shows the matches per line.

Loading the .NET regex engine…Downloading the WebAssembly runtime. The controls unlock when it's ready. .NET ยท WASM

.NET regex quick reference

Click a token to insert it at the cursor; substitutions go into the replacement field.

Character classes

Anchors

Quantifiers

Groups and lookarounds

Inline options

Substitutions (Replace)

Escapes

An unhandled error has occurred. Reload ๐Ÿ—™