Skip to main content

Regex Tester

Test regular expressions against text

Regular Expression

Enter your regex pattern

Common Patterns

Quick start with common regex patterns

Test String

Enter text to test against

Results

No matches yet

Enter a pattern and test string, then click Test Regex

Regex Quick Reference

Character Classes

\d - Digit

\w - Word character

\s - Whitespace

. - Any character

Quantifiers

* - 0 or more

+ - 1 or more

? - 0 or 1

{n,m} - Between n and m

Anchors

^ - Start of line

$ - End of line

\b - Word boundary

| - Alternation (OR)