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
/
(?<=\/)(?=[^\/\n]{0,6}path)[^\/]{10}\/
/
gm
Input 1
1
New
d:/KeepItSimple/1234path21/WAVs/filename.wav d:/TryToKeepItSimple/5678path23/WAVs/filename2.wav d:/Simpler/path567823/WAVs/filename2.wav d:/TooShort/path56782/WAVs/filename2.wav d:/TooLong/path5678234/WAVs/filename2.wav d:/pathNotPresent/5678pat23/f3.wav
Substitution
d:/KeepItSimple/1234path21/WAVs/filename.wav d:/TryToKeepItSimple/5678path23/WAVs/filename2.wav d:/Simpler/path567823/WAVs/filename2.wav d:/TooShort/path56782/WAVs/filename2.wav d:/TooLong/path5678234/WAVs/filename2.wav d:/pathNotPresent/5678pat23/f3.wav