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
/
(?<!REQ|INC|\d)\d{9,}
/
gm
Input 1
New
1234567890 -> match -> 1234567890 INC1234567890 -> not matching REQ1234567890 -> not matching IN1234567890 -> match -> 1234567890 need to write a regex to capture all numbers longer than 9 digits not being preceded by REQ or INC substrings.
Extraction
1234567890 -> match -> 1234567890 INC1234567890 -> not matching REQ1234567890 -> not matching IN1234567890 -> match -> 1234567890 need to write a regex to capture all numbers longer than 9 digits not being preceded by REQ or INC substrings.