Regular Expressions 101

Sponsors

Library entries

0
pcre2

Ipv4 validation

regex for ip validation
Submitted by Amper - 4 hours ago
0
pcre

腾讯视频

从元素解析视频URL
Submitted by anonymous - 7 hours ago
0
pcre2

Split The Phone Numbers

Split The Phone Numbers
Submitted by anonymous - 8 hours ago
0
dotnet

No leading or trailing spaces

No leading or trailing spaces
Submitted by anonymous - a day ago
0
dotnet

Ipv4 with optional port

ipv4 with optional port
Submitted by anonymous - a day 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