Regular Expressions 101

Sponsors

Library entries

0
javascript

check mail

Vérifie si le mail est valide ou non
Submitted by anonymous - 3 days ago
0
javascript

Find WikiRace baseURL

https://github.com/d-k-bo/WikiRace
Submitted by anonymous - 8 days ago
1
javascript

File extension

Retrieve the file extension of a filename
Submitted by anonymous - 18 days ago
0
javascript

域名规则

域名规则
Submitted by anonymous - 21 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