Regular Expressions 101

Library entries

Get dynamic parameters from an URL

Vote

2

Regular Expression
pcre

/
(?:http\:\/\/(?:www\.)?){1}[^\/]*\/([^\/]*)(?#parameter2)(?:\/([^\/]*))?(?#parameter3)(?:\/([^\/]*))?(?#parameter4)(?:\/([^\/]*))?
/

Description

Loading markdown...
Submitted by Caio Oliveira - 8 years ago