Back

Regular Expression Tester

RegEx Tester

No matches found.

Regex Cheat Sheet

  • . — Any character except newline
  • \w — Word character [a-zA-Z0-9_]
  • \d — Digit [0-9]
  • \s — Whitespace
  • [abc] — Any character a, b, or c
  • [^abc] — Not a, b, or c
  • a* — 0 or more a's
  • a+ — 1 or more a's
  • a? — 0 or 1 a
  • a{3} — Exactly 3 a's
  • a{3,} — 3 or more a's
  • a{3,5} — 3 to 5 a's
  • (abc) — Capture group
  • | — OR
  • ^ — Start of line
  • $ — End of line
  • \b — Word boundary
  • (?=a) — Lookahead
  • (?<=a) — Lookbehind
Regular Expression Tester – Test and Debug Regex Patterns