๐Ÿ“˜RegExp

Regular Expressions

JS โŸฉ value โŸฉ object โŸฉ regex โŸฉ

Regular expressions are string patterns and used with๏ผš

\w    word character    = [a-zA-Z0-9_]
\s    whitespace        

๐Ÿ‘‰ regular expression cheatsheet

  • By default, regular expressions work on code units, not actual charactersโ—

  • Characters that are composed of two code units (e.g. emojis) behave strangely.

  • Enable "/u" flag to support Unicode in regular expressions.

Last updated