Quick Regex Cheat Sheet

  • ^ / $ : Start and end of line anchors.
  • \d / \w / \s : Matches digits, word characters, and whitespace.
  • + / * / ? : One or more, zero or more, and optional quantifier.
  • (?<=...) / (?=...) : Positive lookbehind and lookahead assertions.