realbasic-nug
[Top] [All Lists]

Re: Validate URL

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Validate URL
From: Charles Yeomans <charles at declareSub dot com>
Date: Thu, 31 Aug 2006 00:04:45 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <021601c6ccab$0bd41480$6401a8c0 at HP>

On Aug 30, 2006, at 11:10 PM, Walter Purvis wrote:

 -----Original Message-----
 However, there can be exactly one "://"
 sequence for a valid URL,

This is not true.

Just use the regular expression I posted. It would be incredibly complicated and error prone to try to test for every permutation of a valid URL using RB
string functions.


Actually, it wouldn't be much harder than writing that regular expression. It's that regular expressions are a language designed for this purpose.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>