| Issue with '= ' within <regexp/ > | Issue with '= ' within <regexp/ > 2003-03-25 - By Andreas Ames
Hi,
I'm sure I'm missing something obvious but I've got a problem I don't know how to deal with.
I'm using:
ant 1.5.1 (prepackaged on Debian) j2sdk 1.4.1 oro 2.0.6
I'm using a <replaceregexp byline="true"/> to patch a file that looks like:
---- <test file> ---- VERSION__ = "foobar" # test
---- </test file> ----
FWIW, the second line is empty. As nested elements I use:
<regexp pattern="^([:blank:]*)VERSION__([:blank:]*)(.*)$"/> <substitution expression="$1 VERSION__$2-=)$3"/>
and all goes well, i.e. substitution occurs as expected. But when I use:
<regexp pattern="^([:blank:]*)VERSION__([:blank:]*)=(.*)$"/> <substitution expression="$1 VERSION__$2-=)$3"/>
(only the '=' added to the pattern), no substitution occurs. I have no idea why, so please help me out.
TIA,
andreas
|
|
 |