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"
^.*?(\d+).*$
"
gm
Input 1
1
New
xxxx,123456,sometext123456,123456,anothertext,123,a 1234,ewqewqe,ewqewqe,12343,3123213 wejhqewqewqewq,ewqe,wqeWQE,WQ,EWQ,EWQ,EQW,E,1234 1234