Matching

Syntax

["Regexp", "Flags"], [...]

Parameters

  • Regexp A regular expression object

  • Flags Regular expressions have optional flags that allow for functionality like global searching and case-insensitive searching

Return Value

All results matching the complete regular expression will be returned.

Example

["[0-9]", "g"], ["[a-zA-Z]+", "g"]
["\\p{sc=Latin}", "gu"]
["[^\\x00-\\x7F]+", "g"]
["[^\\u0000-\\u007F]+", "g"]
["[ไธ€-้พ ]+|[ใ-ใ‚”]+|[ใ‚ก-ใƒดใƒผ]+|[ใ€…ใ€†ใ€ค]+|[โบ€-โฟ•]+|[ใ€-ใ€ฟ]+|[ใ‡ฐ-ใ‡ฟใˆ -ใ‰ƒใŠ€-ใฟ]+", "gmu"]

Last updated