JS: RegExp Reference

less than 1 minute read

Syntax

/pattern/modifiers

Modifiers

  • g:Perform a global match (find all matches rather than stopping after the first match)
  • i: Perform case-insensitive matching
  • m: Perform multiline matching

Updated: