EngineeringNew

Regex Tester

Test regular expressions with highlighted matches, groups and a cheat sheet. Runs entirely in your browser, nothing is stored.

//g
0 matches
Call 0300-1234567 or +923211234567. Office: 042 35761234.
Cheat sheet
.any character
\d \w \sdigit, word char, whitespace
\D \W \Snot digit / word / space
[abc] [^abc]one of / none of
a* a+ a?0+, 1+, 0 or 1
a{2,5}between 2 and 5
^ $start / end of line
\bword boundary
(x) (?:x)capture / non-capture
(?<name>x)named group
a|ba or b
(?=x) (?!x)lookahead / negative

Runs in a background worker with a 1 second limit, so a bad pattern can't freeze the page.

Need more than a free tool?

Qawex builds, secures and grows websites and systems. Talk to a person.

Browse services

Related tools

All tools