Appearance
Here you can find a relatively simple testing tool to evaluate javascript regular expressions.
And below there's a short reference on some regex formatting conventions as well.
RegEx Test Tool
Enter a valid Regular ExpressionEnter some input text
RegEx reference
Character classes
[ABC]- character set[^ABC]- negated character set[A-Z]- range.- any character\s- any whitespace (tab, space)\S- not whitespace (tab, space)\w- any word\W- not a word\d- any digit\D- not a digit
Anchors
^- beginning$- end\b- word boundary\B- not word boundary
Escaped characters
\xFF- hexadecimal escape\uFFFF- unicode escape\u{FFFF}- extended unicode escape\n- newline\r- carriage return\t- tab\v- vertical tab\f- form feed\0- null
