Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Issue with [:blank:] (was: Issue with '= ' within <regexp/ >)

Issue with [:blank:] (was: Issue with '= ' within <regexp/ >)

2003-03-26       - By Andreas Ames

Andreas Ames <andreas.ames@(protected)> writes:

> <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.

Sorry for following up my own post, but some further tests have shown
that

<regexp pattern="^([ \t]*)VERSION__([ \t]*)=(.*)$"/>

does the trick.  So there seems to be a problem with the 'blank' POSIX
character class (as documented on the perlre manpage) within oro.


cheers,

andreas


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.