Regular Expressions 101

Library entries

split URL into location-resource-params (JavaScript)

Vote

6

Regular Expression
javascript

/
(.+)(?:\/([\w\-\._]+\.js))(?:\?(.+))?
/
gm

Description

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