works but capturing groups are not so organized
testing string: "https://127.0.0.1:8000/path/subpath/otherpath" "https://127.0.0.1/path/subpath/otherpath" "https://127.0.0.1/12345/subpath/otherpath"