Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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.
Advertisement
Add Comment
Please, Sign In to add comment