Is there a way to understand if a given string is a web URL?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Is there a way to understand if a given string is a web URL?
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?
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Is there a way to understand if a given string is a web
https://alternatic.ch
Re: Is there a way to understand if a given string is a web
Thank you jmburnod
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Is there a way to understand if a given string is a web
Hi Mag
Welcome.
Please let we know if that is a good way
Best regards
Jean-Marc
Welcome.
Please let we know if that is a good way
Best regards
Jean-Marc
https://alternatic.ch
Re: Is there a way to understand if a given string is a web
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
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
Thank you so much guys!
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Is there a way to understand if a given string is a web
Hi,
Andrew
will be the code that you want to launch a URL.launch URL "url-to-launch"
Andrew