> Corrected RE is below.  Toward the end, I added a \ at *\.[[:alpha:]]{2,}$
>
> "^([[:alnum:]][-a-Sa-Z0-9_%\.]*)?[[:alnum:]]@[[:alnum:]]
> [-a-Sa-Z0-9%\> .]*\.[[:alpha:]]{2,}$"

Actually, I think your ranges are a little off.  For instance, I think you
mean -a-zA-Z0-9 instead of -a-Sa-Z.  I corrected the ranges to produce

"^([[:alnum:]][-a-zA-Z0-9_%\.]*)?[[:alnum:]]@[[:alnum:]][-a-zA-Z0-9%\>
.]*\.[[:alpha:]]{2,}$"

which seems to work like a charm.

> The $ at the end functions exactly like the ^ at the beginning.  It
> functions as an anchor and says "the string must end here".  Otherwise,
> any string that _begins_ with a match for the RE is seen as a match and
> return TRUE.  Using both ^ and $ means that the whole string must be a
> match for the pattern, rather than just _containing_ the pattern.

Now that you mention it, it does sound familiar. Thanks for all of the help.

Best Regards,
Seth Petry-Johnson
Argo Enterprise and Associates

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to