Re: Subtraction/Intersection syntax

Just Lurker <[email protected]> Tue, 4 Oct 2005 10:15:18 -0700
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
The expression in my previous post should read

^[[:ascii:]&&[^[:cntrl:]\u0020\\<>\"\[\].,;:@]]*$

Thanks.


On 10/3/05, Just Lurker <[email protected]> wrote:
> Does ORO support the subtraction/intersection functionality?
>
> I  have been trying to use the following regular expression without
> much success, for validating user-id's using the RFC-2486 standard.
>
>
> ^[^[[:ascii:]&&[:cntrl:]\u0020\\<>\"\[\].,;:@]]*$
>
> Essentially, in the above expression, I am expecting to allow all
> ascii characters except for control characters, space and any one of
> those punctuation characters.
>
> Any suggestions on how to implement this would be much appreciated.
>
> Thanks.
>