ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonese <gig...@gmail.com>
Subject Re: replaceregexp issues...
Date Fri, 15 Feb 2008 20:31:40 GMT
Got it....

needed to use Unicode Equivilent \p{IsCntrl}

FYI for those who need it:

http://perldoc.perl.org/perlre.html

jonese

On Feb 15, 2008 3:01 PM, jonese <gigado@gmail.com> wrote:
> Ok i have this:
>
> <replaceregexp file="database.sql" match="\0" replace="" flags="g" />
>
> and i keep getting this error when i run my ant task
>
> BUILD FAILED
> C:\working\isirv\build.xml:151:
> java.util.regex.PatternSyntaxException: Illegal octal escape sequence
> near index 2
> \0
>   ^
>
> The error is pointing to whatever occurs AFTER the \0
>
> i've tried
> [\0]
> \0
> \0{1,}
> (\0){1,}
> [\0]{1,}
>
> same thing.
>
> anyone? i tought this was supposed to allow for PERL5 syntax??
>
> jonese
>

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


Mime
View raw message