https://regexr.com/
Is case sensitive
[j-q] matches single character between j-q j+ matches one or more j's [j-q0-9]+ matches j9q0 [j-q]+[0-9]+ matches jq9 not j9q0
.
any char
a.b => aye
*
0-any of last char
ba* => baaaaa & b
+
1-any of last char
ba+ => baaaaa & ba
^
not
[^0-9] => a
Start of word
^abc$
$
End of word
\d
digit
1
\D
nondigit
f
\w
[A-Za-z0-9_]
Ab_cd08
\W
not [A-Za-z0-9_]
!?
\s
whitespace
\S
not whitespace
12
\b
word boundary, empty string at start and end of word and string
\b-\b => nine-digit \bJorge\b => You(Jorge)
\B
not word boundary
/[^0-9.-]+/g
Matches any character not in the set 0-9, ., or -
-
Last updated 9 days ago