Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
[^any\d]|a(?!ny)|(?<=a)n(?!y)|(?<!a)n(?=y)|n(?!y)|(?<!an)y
"
gm
Input 1
1
New
I successfully mande a regex to include it is any 0-9 but don't know the way to exclude. any zny znk anz ny any n
Substitution
I successfully mande a regex to include it is any 0-9 but don't know the way to exclude. any zny znk anz ny any n