Regular Expressions 101

Library entries

split URL in protokoll, domain, file(with path), parameter and anker

Vote

-1

Regular Expression
pcre

/
(?<protokoll>[a-z]*):\/\/?(?<domain>[a-z.-]*)?(?<file>[^?#]*)?[?](?<parameter>[^#]*)?[#](?<anker>.*)?
/

Description

Loading markdown...
Submitted by Candyman - 6 years ago