Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to write "<id" in <regexp></regexp>?

Status
Not open for further replies.

dnpmoris

Programmer
Apr 4, 2008
1
0
0
US
I need to find '<id' and replace it with <cache usage="read-write"/>

and my current code is below. So, if any one can help me how to modify my code for replacement, then it would be great

<target name="change-id" depends="gen-hbm">
<regexp id="id.regexp" pattern='<id' />

<replaceregexp replace='somethingssomething\n^?id'>
<regexp refid="id.regexp" />
<fileset dir="${dest.dir}">
<include name="**/*.hbm.xml" />

</fileset>
</replaceregexp>
</target>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top