Regex tester
Test regular expressions with live match highlighting and capture group breakdown.
/ /
Matches
Capture groups
| # | Full match | Groups |
|---|
Regex cheat sheet
. Any character except newline \d Digit [0-9] \w Word char [a-zA-Z0-9_] \s Whitespace \b Word boundary ^ Start of string / line $ End of string / line * Zero or more (greedy) + One or more (greedy) ? Zero or one / lazy modifier {n,m} Between n and m repetitions (abc) Capture group (?:abc) Non-capturing group (?<name>abc) Named capture group [abc] Character class [^abc] Negated character class a|b Alternation (a or b)