I tried different phing filters regex aso. to cut out different pieces of code out of a build target.
For that i use something like
##CUTSTART
<?php // ...code to cut... ?>
##CUTEND
This won't work because of no multiline support i guess:
<filterchain>
<replaceregexp>
<regexp pattern="##CUTSTART(.*)##CUTEND" replace="## gone" ignoreCase="true" />
</replaceregexp>
</filterchain>
Got an idea?