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
/
.*?small.{0,15}cube|(.*?cube)
/
gm
Input 1
1
cube red cube wooden cube small................cube small cube small red cube small wooden cube ..........small......cube
Substitution
cube red cube wooden cube small................cube small cube small red cube small wooden cube ..........small......cube