Regular Expression Tester
Test your regular expressions against strings in real-time
Regular Expression
Enter the regular expression you want to test
Test String
Enter the string you want to test against the regular expression
Regular Expression Tips
Quick tips for writing effective regular expressions
- Use
.to match any single character (except newline). - Use
*to match zero or more occurrences of the preceding character or group. - Use
+to match one or more occurrences of the preceding character or group. - Use
?to match zero or one occurrence of the preceding character or group. - Use
[]to define a character set (e.g.,[a-z]matches any lowercase letter). - Use
()to group characters or patterns. - Use
^to match the start of a string, and$to match the end of a string. - Use
\to escape special characters (e.g.,\.matches a literal dot).
Category Hub
Related Tools
Daily Inspiration
The pen is mightier than the sword. - Edward Bulwer-Lytton
