Hi,
Gute Frage, ich habe mir das auch schon überlegt. Allerdings habe ich schon bei diesem Regex eine Nacht gebraucht, bis es so gelaufen ist, wie ich es mir vorgestellt habe. Wie ich jetzt das Ganze noch aufteilen soll, ist mir nicht ganz klar.
Dann überlege dir zunächst, welche Bestandteile solch ein URL hat oder haben kann(!), bzw. welche davon du einzeln identifizieren willst.
Anschliessend überlege dir, wie du diese einzelnen Bestandteile in einzelne Muster umsetzt, und schlussendlich, wie sie sinnvoll zu kombinieren sind (bspw. in Hinsicht auf optionale Bestandteile).
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]