Skip to content
  1. Home

Free Online Regex Tester – Test, Debug & Replace Regular Expressions Live

Regex Tester

Test regular expressions live, see matches and capture groups, and run find & replace • 100% free • No upload to server

Regular expression / /
Flags
Common patterns
Test text 0 characters
Highlighted matches
Match details
Replace with (use $1, $2 for groups, $& for the whole match)
Replaced result
Quick regex reference
. any character
\d digit • \D non-digit
\w word char • \W non-word
\s space • \S non-space
^ start • $ end
\b word boundary
* 0 or more • + 1 or more
? optional • {2,4} 2 to 4 times
[abc] any of a, b, c
[^abc] none of a, b, c
(x) capture group
(?:x) non-capturing group
a|b a or b
(?=x) lookahead
Suraj Bhandari

Written by Suraj Bhandari

Thanks for reading! If this article helped you, share it with someone who needs it.

Comments