On Mar 2, 2015, at 4:55 PM, Juanjo Conti <[email protected]> wrote:
> Ok, I wanted to validate that the url is an absolute one. Is there
> something in Swift standard lib to do this?
That depends on what you mean by "validate." If you simply mean checking
whether it well-formed, you can do that easily with a regular expression match,
such as (written in email):
^http://(?:[a-z0-9-]+\.){1,}[a-z]{2,4}
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]