Ok I give up, I've been trying to write a regexp in ant to replace the version number from something that I have in a properties file. I have the following:
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="some.feature.id"
label="Some test feature"
version="1.0.0"
provider-name="Provider">
<plugin
id="test.plugin"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
..... many plugins later....
</feature>
What I want to achieve is substitute the version number of the feature tag only, without changing the version of the xml or the version of the miriad of plugins in the file.
The problem I have is that I either match too much or too little. Definitively matching "version" is not enough, because everything would be changed
Is there any easy way to match then only the version inside the tag, taking into consideration that the '0.0.0' could be any number?