EduSupport Logo

EduSupport

Regex Tester

Live regex match highlighting with flag support and captured groups — runs in your browser.

Pattern
Flags:
Test String
Quick Reference
Character Classes

.

Any char

\d

Digit (0–9)

\D

Non-digit

\w

Word char

\W

Non-word

\s

Whitespace

\S

Non-space

[abc]

Char set

[^abc]

Negated set
Anchors

^

Start of line

$

End of line

\b

Word boundary

\B

Non-boundary
Quantifiers

*

0 or more

+

1 or more

?

0 or 1

{n}

Exactly n

{n,m}

n to m

*?

Lazy (0+)

+?

Lazy (1+)
Groups & Lookarounds

(abc)

Capture group

(?<n>abc)

Named group

(?:abc)

Non-capture

(?=abc)

Lookahead

(?!abc)

Neg. lookahead

(?<=abc)

Lookbehind

(?<!abc)

Neg. lookbehind
Regex Tester Online — Live Match Highlighting | EduSupport