Online regular expression testing and validation tool with real-time matching and syntax highlighting
Enter a pattern and test string to start testing
. - Matches any character except newline^ - Matches start of string$ - Matches end of string* - Matches 0 or more of the preceding element+ - Matches 1 or more of the preceding element? - Matches 0 or 1 of the preceding element\d - Matches any digit (0-9)\w - Matches any word character (a-z, A-Z, 0-9, _)\s - Matches any whitespace character[abc] - Matches any character in the set[^abc] - Matches any character not in the set