ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick (Gus) Heck" <>
Subject Re: Fw: trouble with replaceregexp
Date Wed, 19 Jun 2002 14:32:50 GMT

>  P.S. I also had a lot of trouble doing a negation match.  For
>  example, I was originally tried:
>  ^.*\.[^(process|tem|htm|html)]\^.*$

I havn't looked at how Ant defines Regexps, but assuming that they are
similar to perl5 the above line could also be written as
^.*\.[()|procestmhl]\^.*$ and the part inside the bracket would match a
single character that was not one of the characters in the set: (, ), |,
p, r, o, c, e, s, t, m, h or l. 


should each match.


should each fail.

If that isn't true, then there is something strange about the Ant
implementation (IMHO).


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message