Regular Expressions 101

Library entries

Link splitter

Vote

1

Regular Expression
pcre

/
(?<Address>(?<Protocol>https?:\/\/)?(?<Subdomain>\w*\.)?(?<Domain>(?:[a-z0-9\-]{2,})\.(?:[^\s\/\.]{2,}))(?<Path>\/[^\s\?]*)?(?<Params>(?:\?|\#)[^\s\/\?\:]*)?)
/
gi

Description

Loading markdown...
Submitted by Ricardo Boss (MCMainiac) - 6 years ago