RegEx Validator

Check Regex against a set of words

Enter the regular expression:

Enter the word(s) that you want to check the regex against (You can enter up to 5):
Word 1:
Word 2:
Word 3:
Word 4:
Word 5:


Check regex substitution

Enter the regular expression correction:

Enter the character(s) replacement:

Enter the word that you want to check the substitution regex against:


Regular Expression Cheat Sheet

[abc] A single character of: a, b or c . Any single character (…) Capture everything enclosed
[^abc] Any single character except: a, b, or c \s Any whitespace character (a|b) a or b
[a-z] Any single character in the range a-z \S Any non-whitespace character a? Zero or one of a
[a-zA-Z] Any single character in the range a-z or A-Z \d Any digit a* Zero or more of a
^ Start of line \D Any non-digit a+ One or more of a
$ End of line \w Any word character (letter, number, underscore) a{3} Exactly 3 of a
\A Start of string \W Any non-word character a{3,} 3 or more of a
\z End of string \b Any word boundary a{3,6} Between 3 and 6 of a