Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
(?<=key)\s(?:\d+[\s,]+)+(?:and )?\d+
"
g
Input 1
1
New
some text key 12, 32, 311 ,465 and 345. some other text dog 612, 12, 32, 9 and 10. some text key 1, 2. a key is dog 3242342342, 345345