ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick (Gus) Heck" <patrick.h...@olin.edu>
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. 

foo.x^foo
bar.P^bar

should each match.

foo.)^foo
bar.s^bar 

should each fail.

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

Gus

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message