View Single Post
 
Old 10-05-2017, 02:57 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,203
Default

I would search for "://" and Copy from this to the next /
Just a simple Pos and PosEx with a Copy

Only thing you need to do first is StringReplace of \ to /
This because url can with \ is also valid

RegEx is also valid, but since I live in the Netherlands, the .nl is not included and therefor not found. And there are more countries that I can think of.
Therefor the simple string-slice method, since you're only interested in the first entry after the "://"