Page 1 of 1
Is there a way to understand if a given string is a web URL?
Posted: Thu Apr 11, 2013 4:46 pm
by Mag
Hi all, somebody of the gurus of the forum, know if there is a quick way to check if a string is a web url?
Re: Is there a way to understand if a given string is a web
Posted: Thu Apr 11, 2013 5:59 pm
by jmburnod
HI Mag
Why not
Code: Select all
put ("http://" is in MyString) into tIsUrl
Best regards
Jean-Marc
Re: Is there a way to understand if a given string is a web
Posted: Fri Apr 12, 2013 11:38 am
by Mag
Thank you jmburnod
Re: Is there a way to understand if a given string is a web
Posted: Fri Apr 12, 2013 1:23 pm
by jmburnod
Hi Mag
Welcome.
Please let we know if that is a good way
Best regards
Jean-Marc
Re: Is there a way to understand if a given string is a web
Posted: Fri Apr 12, 2013 4:38 pm
by Mag
Yes, I also added a check for learn if the string is at the begin of the text (which have to have one line only) or if the strings starts with "www"...
Re: Is there a way to understand if a given string is a web
Posted: Sat Apr 13, 2013 7:32 am
by shaosean
If you have internet access, you can always try to connect to the URL (a success means it is valid, but a failure does not always mean it is invalid)..
Re: Is there a way to understand if a given string is a web
Posted: Sat Apr 13, 2013 10:53 am
by Mag
Thank you so much guys!
Re: Is there a way to understand if a given string is a web
Posted: Tue May 07, 2013 6:55 pm
by andrewferguson
Hi,
launch URL "url-to-launch"
will be the code that you want to launch a URL.
Andrew