Regex

Quantifiers in Regex
. -> any one character.

  • -> zero or more
  • -> one or more ? -> zero or one

javascript search is case sensitive by default.
Regex - modifiers or flag.
i - case insensitive
g - global match, does not stop after first occurance.
m - multiline search.
s - allow (.) to match new line character.
u - switches on unicode pattern matching.
y - switches on sticky mode.

More from Mukesh Dak
All posts