Regular Expressions 101

Sponsors

Library entries

0
pcre

https://regex101.com/r/VrZHR8/1

https://regex101.com/r/VrZHR8/1
Submitted by anonymous - 15 days ago
0
golang

S3 Path with ending .json

S3 Path with ending .json
Submitted by Sowmith - 17 days ago
0
pcre

filter

filter string
Submitted by anonymous - 19 days ago
0
pcre

1

Prueba 1
Submitted by anonymous - 21 days ago
0
pcre

mvc

com c#
Submitted by anonymous - a month ago
0
pcre

test

teste
Submitted by anonymous - a month ago
1
golang

1

11
Submitted by anonymous - a month 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