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]

Reply via email to