Regular Expressions 101

Sponsors

Library entries

0
javascript

Date Validator

Submitted by anonymous - 2 days ago
0
javascript

111

111
Submitted by Alex - 3 days ago
0
javascript

multicast

.
Submitted by anonymous - 7 days ago

split URL into location-resource-params

Vote

3

Regular Expression
pcre

/
(?'location'.+)(?:\/(?'resource'[\w\-\._]+\.js))(?:\?(?'params'.+))?
/
gm

Description

Loading markdown...
Submitted by cebence - 8 years ago