{
  "dataset": "regex-cheatsheet",
  "title": "Regex cheat sheet",
  "version": "1.0.0",
  "updated": "2026-07-02",
  "source": {
    "name": "ECMAScript language specification, regular expressions",
    "url": "https://tc39.es/ecma262/multipage/text-processing.html#sec-regexp-regular-expression-objects"
  },
  "checkedAt": null,
  "license": "CC BY 4.0",
  "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Data from quickref.tips",
  "documentation": "https://quickref.tips/reference/regex-cheatsheet",
  "recordCount": 16,
  "data": [
    {
      "token": ".",
      "matches": "Any single character"
    },
    {
      "token": "^",
      "matches": "Start of the string or line"
    },
    {
      "token": "$",
      "matches": "End of the string or line"
    },
    {
      "token": "*",
      "matches": "Zero or more of the previous"
    },
    {
      "token": "+",
      "matches": "One or more of the previous"
    },
    {
      "token": "?",
      "matches": "Zero or one (optional)"
    },
    {
      "token": "\\d",
      "matches": "A digit, 0 to 9"
    },
    {
      "token": "\\w",
      "matches": "A word character, letter, digit, or underscore"
    },
    {
      "token": "\\s",
      "matches": "Any whitespace"
    },
    {
      "token": "[abc]",
      "matches": "Any one of a, b, or c"
    },
    {
      "token": "[^abc]",
      "matches": "Any character except a, b, or c"
    },
    {
      "token": "[a-z]",
      "matches": "Any character in the range"
    },
    {
      "token": "a|b",
      "matches": "Either a or b"
    },
    {
      "token": "(...)",
      "matches": "A capturing group"
    },
    {
      "token": "{2,4}",
      "matches": "Between two and four of the previous"
    },
    {
      "token": "\\b",
      "matches": "A word boundary"
    }
  ]
}