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
r"
^\^{2}fruit/[^^\n]*\^vegetables/
"
gm
Input 1
1
New
Should match all seqences starting with any step starting with "fruit/" followed by a step starting with "vegetables/". So these should be matched: ^^fruit/citrus/orange^vegetables/carrot^^ ^^fruit/citrus/orange^vegetables/potatoe^^ but not these: ^^fruit/citrus^fruit/citrus/orange^meat^vegetables/carrot^^ ^^fruit/citrus^vegetables^vegetables/carrot^^