RegExp Pattern
RegExp Pattern
Pattern Description
Escaping
\ Escapes special characters to literal and literal characters
to special.
E.g: /[abcd]/ matches any of the characters 'a', 'b', 'c', 'd'
and may be abbreviated to /[a-d]/. Ranges must be in
ascending order, otherwise they will throw an error. (E.g:
/[d-a]/ will throw an error.)
/[^0-9]/ matches all characters but digits.