I am trying to recognize and parse the following string:
HTTPS Access https://ftp.abc.def.com/dir1<about:blank%20https:/ftp.abc.def.com/dir1>
What I want to pull out is
host = ftp.abc.def.com
I use the following regular expression:
(?i)https:\/\/<?host>\S+)\/(?<dir>\S+)
which gives me
host = ftp.abc.def.com/dir1<about:blank%20https:/ftp.abc.def.com
Why is the host being matched all the way to the last / and not just the first?