ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juniarti Suryakusuma <>
Subject Help with replacing string in a file using more then one matching token
Date Wed, 01 Oct 2003 21:25:37 GMT
Can anyone help me on please?
I am trying to replace a string in a file, such as text.xml

And inside text.xml there are strings like this below:
firstName="Jamie"  middleName="A"  id="4242522"  lastName="Smith"
firstName="Susie"  middleName="M"  id="5223242"  lastName="Smith"

I need to change the last name of Susie to from Smith  to  Simpson.
So basically I need to match Susie and Smith and replace Smith with 
Simpson if the firstName is Susie.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message