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
/
(?'location'.+)(?:\/(?'resource'[\w\-\._]+\.js))(?:\?(?'params'.+))?
/
gm
Input 1
New
leaflet-0.7.2.js /leaflet-0.7.2.js http://leafletjs.com/dist/leaflet.js https://api.tiles.mapbox.com/mapbox.js/v1.6.3/mapbox.js http://example.com/path/to/leaflet-0.7.2.js http://example.com/path/to/mapbox-v1.6.2.js http://leafletjs.com/dist/leaflet.js?v=123456&hide=true#section
Substitution
leaflet-0.7.2.js /leaflet-0.7.2.js http://leafletjs.com/dist/leaflet.js https://api.tiles.mapbox.com/mapbox.js/v1.6.3/mapbox.js http://example.com/path/to/leaflet-0.7.2.js http://example.com/path/to/mapbox-v1.6.2.js http://leafletjs.com/dist/leaflet.js?v=123456&hide=true#section