| To: | "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: RE: Validate URL |
| From: | "Dennis Birch" <dennisbirch at gmail dot com> |
| Date: | Thu, 31 Aug 2006 10:21:05 -0700 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TbbTKwhrlNdz3Tvb9Un6T3k9CcCfrDR43SWjoltM/xO4FWKjUr5oZkC2hotNEA1lGPZrt6P8D6QZnM+hIgTUx0tsROk+bld5w6Be6V4E8w/2H+vSbr4sD1t00m2U1ebG5J7hYh++IurLjUCa+X7jT9N7x7b8eBwlmfWoHK5nrxM= |
| References: | <4D4FE5BC-9474-4F41-A279-8CCED96FB8B4 at jettfuel dot net> <020c01c6cca3$5dd7ff10$6401a8c0 at HP> |
Can you share an example of how you would use this in RB code? I am a complete novice to Regex. My attempts to apply this following the example code in the LR are resulting in nothing useful. On 8/30/06, Walter Purvis <wpurvis at gmail dot com> wrote: > -----Original Message----- > I am needing to validate the contents of an EditField as a > properly formatted URL. Does someone have a good suggestion > on how to accomplish this? Perhaps a REGEX? Check this: <http://www.geekpedia.com/Question65_How-to-validate-an-URL-using-RegEx-in-C sharp.html> It uses this regex (([a-zA-Z][0-9a-zA-Z+\\-\\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\\.\\-_!~*'()%]+)?( #[0-9a-zA-Z;/?:@&=+$\\.\\-_!~*'()%]+)? constructed according to the BNF grammar given in RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt). _______________________________________________ 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> |
|---|---|---|
| ||
| Previous by Date: | Re: [Win32] FolderItem is Valid, TextInputStream is Nil, Joseph Nastasi |
|---|---|
| Next by Date: | RE: [Win32] FolderItem is Valid, TextInputStream is Nil, Walter Purvis |
| Previous by Thread: | RE: Validate URL, Walter Purvis |
| Next by Thread: | Re: Validate URL, Charles Yeomans |
| Indexes: | [Date] [Thread] [Top] [All Lists] |