以下のような記述にて [[Apache]] [[Ant]] 中で [[regex]] を実行することが可能になります。
<replaceregexp encoding="UTF-8" byline="true">
<regexp pattern="pat" />
<substitution expression="replace" />
<fileset dir=".">
<include name="**/*.txt" />
</fileset>
</replaceregexp>
定型的に文字列を置き換える手順がある場合に、この機能はとても便利です。