Regex Tester
Test and debug regular expressions with real-time matching and explanation
Regex Tester
Test and debug regular expressions with real-time matching and explanation
Enter a pattern and test string to see matches
Tips for using regular expressions
- Use
\d
for digits,\w
for word characters,\s
for whitespace - Use
^
to match the start and$
to match the end of a string - Use
*
for 0 or more,+
for 1 or more,?
for 0 or 1 occurrence - Use
()
for capturing groups and(?:)
for non-capturing groups