Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
(?<scheme>.*):\/\/(?<authority>[^\/]*)(?:\/(?<path>[^\?]*))?(?:\?(?<query>[^#]*))?(?:#(?<fragment>.*))?
/

Description

A simple parser to exact all the components of a URI/URL as named groups

Submitted by Vespion - 2 years ago (Last modified 2 years ago)