RegExr: Learn, Build, & Test RegEx

  • Use Tools to explore your results.
  • RegExr requires a modern browser.
  • If you have Flash support you can still visit RegExr version 1
  • You can still take a look, but it might be a bit quirky.
  • RegExr is an online tool to learn , build , & test Regular Expressions (RegEx / RegExp).

Regular expression tester with syntax highlighting, contextual help, video tutorial, reference, and searchable community patterns.

@gavynmckenzie: You know how your day’s going when you have open. #javascript #angularjs #frontend #justkiddingiloveregex

. any character except newline

\w \d \s word, digit, whitespace

\W \D \S not word, digit, whitespace

[abc] any of a, b, or c

[^abc] not a, b, or c

\b \B word, not-word boundary

\. \* \\ escaped special characters

\t \n \r tab, linefeed, carriage return

a* a+ a? 0 or more, 1 or more, 0 or 1

a{5} a{2,} exactly five, two or more

a+? a{2,}? match as few as possible

RegExr: Learn, Build, & Test RegEx