I'm trying to to a trim to some values using replaceregexp. Everything looks great when I try it in software like EditPad Pro.

Here's a sample of what I want to accomplish:

```
mf.version.impl = 2.01.00  
mf.version.spec= 2.01.00  

```

**Notice the extra spaces after the last digit.**

Then I'm using this pattern:

```
[0-9]+.[0-9]+.[0-9]+[ ]*

```

But it doesn't work in Netbeans.

Here's my ant command for it:

```
<!--If postfix is empty, remove the empty space-->
    <replaceregexp file="../Xinco/nbproject/project.properties"
                   match="mf.version.spec?=?[0-9]+.[0-9]+.[0-9]+[ ]*"
                   replace="mf.version.spec = ${version_high}.${version_mid}.${version_low}"
                   byline="false"/>
    <replaceregexp file="../Xinco/nbproject/project.properties"
                   match="mf.version.impl?=?[0-9]+.[0-9]+.[0-9]+[ ]*"
                   replace="mf.version.impl = ${version_high}.${version_mid}.${version_low}"
                   byline="true"/>

```

**${version\_high}.${version\_mid}.${version\_low} are variables already defined that correspond to 2.01.00 respectively.**

It results in

```
mf.version.impl = 2.01.00 
mf.version.spec = 2.01.00 

```

**Notice one extra space after the last digit.**

I did debug the ant calls and it seems like the above command is not executing like a match didn't occur.

Any idea?