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
/
^(?:\d{1,3}\h+)?[^\d\s]\S+(?:\h+\S{2,}){0,3}$
/
gm
Input 1
New
School This is a School 1 This is a School 145 Is this a School 1450 Is this a School This is Govt Hight School This is the School 1 This is the School 145 Is this the School 123 This is a School=false This is the School=true
Substitution
School This is a School 1 This is a School 145 Is this a School 1450 Is this a School This is Govt Hight School This is the School 1 This is the School 145 Is this the School 123 This is a School=false This is the School=true