๐RegExp
Regular Expressions
Last updated
Was this helpful?
Regular Expressions
Last updated
Was this helpful?
Was this helpful?
JS โฉ value โฉ object โฉ regex โฉ
Regular expressions are string patterns and used with๏ผ
String โฉ match(), matchAll(), replace(), replaceAll(), search(), split().
\w word character = [a-zA-Z0-9_]
\s whitespace
By default, regular expressions work on code units, not actual charactersโ
Characters that are composed of two code units (e.g. ) behave strangely.
Enable "/u
" to support in regular expressions.