Java Mailing List Archive

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

Apache Ant Archive

» Ant Users List
» Ant Developers List
Changing regex implementation in LineContainsRegExp filter

Changing regex implementation in LineContainsRegExp filter

2007-07-19       - By Alex Egg
Reply:     1     2     3     4  

By default it looks like the LineContainsRegExp filter uses the
java.util.regex package by default. However, apparently
this particular regex implementation doesn't support * metacharacters
in look-behinds, e.g.: (?<=\<script
.*src=\")[^\"]+(?=\".*\</script\>)
How can I change the implementation?

Thanks,
Alex

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