ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Inger <>
Subject [PATCH] new optional ReplaceRegExp task
Date Tue, 14 Aug 2001 20:36:13 GMT
attached is an optional task that i created, ReplaceRegExp which will
replace regular expressions in a file, either line by line, or 
processing the
file as a whole.  It uses the "ant.regexp.regexpimpl" system property to
determine the implementation of the new Regexp interface to use.
Javadocs are included.

PS:  Before anyone asks this, the reaons I didn't modify RegexpMatcher 
of creating a brand new Regexp interface, is i didn't think it was 
appropriate to
have a class named "Matcher" that did regular expression substitutions.
However, the Regexp class has all the functionality of the 
RegexpMatcher, plus
a lot more (substitution, flags, etc...)

Matt Inger (
Sedona Corporation
455 S. Gulph Road, Suite 300
King of Prussia, PA 19406
(484) 679-2213
"Self-respect - the secure feeling that no one,
 as yet, is suspicious." -H.L. Mencken 

View raw message