Java Mailing List Archive

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

Home » Ant Users List »

replaceregexp issues...

jonese

2008-02-15

Replies:

Author LoginPost Reply
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@(protected)
For additional commands, e-mail: user-help@(protected)

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