🌎
web.dev
search
Ctrlk
  • 🌏web.devchevron-right
  • ⚙️toolschevron-right
  • 🔰HTMLchevron-right
  • 🔰CSSchevron-right
  • 🍒JSchevron-right
    • 💡tipschevron-right
    • 🧚technique
    • ⭐featurechevron-right
    • 🔰conceptchevron-right
    • 🔰compilationchevron-right
    • 🔰grammarchevron-right
    • 🔰scopechevron-right
    • 💍valuechevron-right
      • 🔰typechevron-right
      • 🦠primitivechevron-right
      • 🍄objectchevron-right
      • 🍄functionchevron-right
      • 🍄classchevron-right
      • 📘built-in objectschevron-right
        • 📘Objectchevron-right
        • 📘Function
        • 📘Arraychevron-right
        • 📘Setchevron-right
        • 📘Mapchevron-right
        • 📘RegExpchevron-right
          • 🚩regex flagchevron-right
          • 🔸lastIndex
          • 🔰creating regex
          • 🔰using regex
          • 🔰patternchevron-right
            • 🔰special characters
            • 🔰anchor
            • 🔰repeatchevron-right
            • 🔰character set
            • 🔰alternation (or)
            • 🔰groupchevron-right
            • 🔰lookaround
            • 🔰inline modifier
            • 🔰replace pattern
            • 😀emoji
          • ✨regex exampleschevron-right
        • 📘Proxychevron-right
        • 📘Date
    • 🔰variablechevron-right
    • 🔰modulechevron-right
    • 🔰iterationchevron-right
    • 🔰async codechevron-right
    • 🔰debuggingchevron-right
    • ⛔Errorchevron-right
    • 🏛️Librarieschevron-right
    • 🛠️toolschevron-right
    • ✨exampleschevron-right
    • 💼projectschevron-right
  • 🔰web componentchevron-right
  • 🌐browserchevron-right
  • 🔰Reactchevron-right
  • Serverchevron-right
  • 🔖附錄
    • 👔customchevron-right
    • 🧩three.jschevron-right
    • 🅰️Google Apps Scriptchevron-right
    • 📖JSDocchevron-right
    • 📦data structurechevron-right
    • 🔰algorithmchevron-right
    • 🔰paradigmchevron-right
    • 🔰TypeScriptchevron-right
    • 💎resourcechevron-right
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. 🍒JSchevron-right
  2. 💍valuechevron-right
  3. 📘built-in objectschevron-right
  4. 📘RegExp

🔰pattern

JS ⟩ value ⟩ object ⟩ regex ⟩ pattern

circle-check

👉 regular expression cheatsheetarrow-up-right

  • special characters

  • anchor - match position between characters.

  • repeat

    • greedy vs. lazy

  • character set

  • alternation (or)

  • group

    • capturing group

    • named group

      • matchAll() using named groups

  • lookaround

  • inline modifier

  • replace pattern

Previoususing regexchevron-leftNextspecial characterschevron-right

Last updated 3 years ago

Was this helpful?

Was this helpful?