View Single Post
  #1 (permalink)  
Old 07-02-2008, 09:06 AM
pankaj_salwan pankaj_salwan is offline
Member
 
Join Date: Jul 2008
Location: india
Posts: 24
pankaj_salwan is on a distinguished road
[SOLVED] how to replace exact string in java
hi!!
string str=
<schemaVersion>6.2.0</schemaVersion>
<version>
<label>6.2.0.0.16</label>
<majorVersion>1.0</majorVersion>
</version>
<schedule name="no_schedule">
<description>Speed</description>
</schedule>
<region name="no_region">
<description>Speed is done</description>
</region>
</model>
using replaceall() in java
i parsed this string on description tag and taken the speed out..i want to replace speed with "hiz"..bt is replacing "speed is done" with "hiz is done" also

the string is big one and there are lot of "speed" word in it..plz tel me hw should it to be done...

Last edited by pankaj_salwan : 07-09-2008 at 05:27 PM.
Reply With Quote
Sponsored Links