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
/
^.+?(?=( by .+?\.)|(\.))
/
gm
Input 1
New
Glass 849 by joseph stalin.png Glass 24 by adolf hitler.jpg Cloud 9 by C9Gaming.psd 154.png 286 by 666k.jpg test123.jpg
Extraction
Glass 849 by joseph stalin.png Glass 24 by adolf hitler.jpg Cloud 9 by C9Gaming.psd 154.png 286 by 666k.jpg test123.jpg