Well then I'm still lost as far as how to use the provided Regex string to validate a URL in RB. I tested with a string that was only one of several variations of malformed URLs (as well as a valid URL), and it validated each of them.
On 8/31/06, Norman Palardy <[EMAIL PROTECTED]> wrote:
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>
