| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Validate URL |
| From: | Norman Palardy <npalardy at great-white-software dot com> |
| Date: | Thu, 31 Aug 2006 12:52:51 -0600 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <4D4FE5BC-9474-4F41-A279-8CCED96FB8B4 at jettfuel dot net> <020c01c6cca3$5dd7ff10$6401a8c0 at HP> <fed2e2560608311021x3edb7493m9d6511a09b1b348d at mail dot gmail dot com> <22BC1D60-43FC-4A72-8610-6E71AE909944 at declareSub dot com> <7A504711-7D58-43CE-A098-5F25E8801699 at mobleybros dot com> <C720ACBE-0A2B-45EF-A279-94FD5422165B at great-white-software dot com> <fed2e2560608311137k3fe1d7fay7ee9a1357f4ae4aa at mail dot gmail dot com> |
On Aug 31, 2006, at 12:37 PM, Dennis Birch wrote: What do you mean by "anchored to the beginning and end"? The ^ in a regex says that the pattern has to start at the beginning of the line and $ at the end of the regex says it has to end at the end of the line. (I may have this backwards)If you change the regex to have those two characters (at the beginning and end) and then have it check the URL it should avoid finding a valid URL anywhere in any text The other way be to simply see that the pattern found is the same length as the original string if it's not what you have found is a substring inside some other text _______________________________________________ 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: AppleDouble and ResourceFork, Knut Lorenzen |
|---|---|
| Next by Date: | Re: 2 issues with menu icons, Sven E Olsson |
| Previous by Thread: | Re: Re: Validate URL, Dennis Birch |
| Next by Thread: | Re: Re: Validate URL, Dennis Birch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |