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
/
^((?:\w+\s?){1,12}).*
/
gm
Input 1
New
w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12. w13 w14 w15
Extraction
w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12. w13 w14 w15