Regular Expressions 101

get parts of URL

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

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

Description

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

Submitted by Candyman1332