Back to all tools

Regex

Test a pattern, see what matches.

//

Highlighted matches (0)

Cheatsheet
  • .any character (except newline)
  • \ddigit (0-9)
  • \Dnon-digit
  • \wword char (a-z A-Z 0-9 _)
  • \Wnon-word char
  • \swhitespace
  • \Snon-whitespace
  • \bword boundary
  • ^start of line
  • $end of line
  • *zero or more
  • +one or more
  • ?zero or one (or lazy)
  • {n,m}between n and m repeats
  • [abc]any of a, b, c
  • [^abc]not a, b, or c
  • (...)capture group
  • (?:...)non-capturing group
  • a|ba or b