On Thu, 2004-01-22 at 09:51, Von Fugal wrote:
> It is the two dots that is your problem. You're basically looking for
> [EMAIL PROTECTED] with certain restraints on those *'s. What you want is
> *@(*.)* with the (*.) able to repeat to allow subdomains. So you're
> expression would look something like this...
> "^[a-zA-Z0-9._-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z.]{2,5}$"
>
"^[a-zA-Z0-9._\-]+@([a-zA-Z0-9\-]+\.)+[a-zA-Z]{2,5}$"
I don't think you want the dot in the last [a-zA-Z]. And if you want
the hyphen to work in the brackets, you'll need to escape it. Other
than that the regexp looks pretty good, I think.
Casey
signature.asc
Description: This is a digitally signed message part
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
