Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^[^\S\r\n]*\d{6,10}[^\S\r\n]*(?:(?:\r\n?|\n)(?![^\S\r\n]*\d{6,10}[^\S\r\n]*[\r\n]).+)*
/
gm
Input 1
1
New
not included 468049876 some text some text ffgg 30905103300638 1 other text other text no included
Extraction