You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by Nathan Coast <na...@netdecisions.co.uk> on 2000/06/22 16:36:10 UTC

Is this correct?

Hi,

I'm trying to develop a regexp for validating the format of an email address
this is what I'm using as the regexp: 

RE regexp = new RE("^[^@ %]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,3}$");

This passes "abc@abc@abc.abc" 

Which is not what I'd expect, is this correct?

Also, are there libraries of regexps written and tested against
org.apache.regexp?

Thanks
Nathan

Re: Is this correct?

Posted by Jon Stevens <jo...@latchkey.com>.
on 6/22/2000 7:36 AM, "Nathan Coast" <na...@netdecisions.co.uk>
wrote:

> Also, are there libraries of regexps written and tested against
> org.apache.regexp?
> 
> Thanks
> Nathan

It comes with a test suite.

-jon