ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Z W" <mpc8...@gmail.com>
Subject Re: regular expressions in Ant
Date Tue, 25 Mar 2008 00:34:09 GMT
I updated with removal of ( from ([\]
and still get the same error about

java.util.regex.PatternSyntaxException: Unclosed character class near index 2
[\]
  ^

On Mon, Mar 24, 2008 at 5:24 PM, Z W <mpc8250@gmail.com> wrote:
> Hi
>
> I have trouble converting \ to \\,  for example in
> \\filer\Test\PaC\M2\5.3, to   \\\\filer\\Test\\PaC\\M2\\5.3.
> I tried with ant-contrib's
>        <ac:propertyregex property="html_2"
>                  input="${html_1}"
>                  regexp="([\]"
>                  replace="\\"
>                  casesensitive="false"/>
>
> But I get errors
> C:\main.xml:452: java.util.regex.PatternSyntaxException: Unclosed
> character class near index 3 ([\]
>
>
>  ^
>
>
> Thanks for sharing
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message