Ok, thanks!

Please let me know when you figure this out. You've got me curious now! ;-)


Cheers,
Dave



> -----Original Message-----
> From: Morus Walter [mailto:[EMAIL PROTECTED]
> Sent: 22 December 2004 21:44
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: processing when a pattern does NOT match
> 
> 
> Hi David,
> > 
> > I'm not familiar, either, with how regexp works in Cocoon. If I'm not
> > mistaken, though, it is based on Java.
> > 
> > FYI: I tried this as a JUnit test and it passed. I'm not saying 
> that it's
> > correct, though.
> > 
> >         final String pattern = "^[^(test)].*";
> >         assertFalse("test".matches(pattern));
> >         assertTrue("atest".matches(pattern));
> >         assertFalse("testAbc".matches(pattern));
> > 
> Sure.
> ^[^(test)].*
> matches any text that does not start with '(', 't', 'e', 's', 't' or ')'
> and contains at least one character.
> 
> But if you'd test, if it matches 'est' or '(test)' or 'sssss' I say that 
> you'll find, that it doesn't.
> If I followed the discussion correctly, it should match since 
> 'est' or 'sssss'
> or '(test)' isn't 'test'.
> 
> Morus
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to