// 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.
Β
Β
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.
Comments
0 B
|π
/π
0 B
|π
/π