Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

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

Description

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

Submitted by Candyman1332 - 9 years ago