Regex Tool

ExpressionMatchesExpressionMatches
\xFFCharacter 0xFF  \n \r \tLF, CR and TAB respectively
\a \e \f \vBELL, ESC, FEED, Vertical TAB respectively  \cA ... \cZASCII Control+A ... Control+Z
[abz]a, b or c  [\^\]\\\-]^, \, - or ]
[a-zA-Z0-9]Any letter or digit  [^a-d]Any character except a, b, c or d
\d, \w and \sDigits, Words and whitespace  \D, \W and \SNegated versions of the above.
[\b]Backspace character  . (dot)Any single character except line break
^ (caret)Start of the string  $ (dollar)End of the string
abc|def|xyzabc, def or xyz  abc(def|xyz)abcdef or abcxyz
abc?ab or abc  * (star)Repeats zero or more times
+ (plus)Repeats one or more  a{3}b{4}aaabbbb
a{2,4}aa, aaa or aaaa  a{2,}Matches 2 or more "a"s