ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juniarti Suryakusuma <juni...@mail.utexas.edu>
Subject Help with replacing string in a file using more then one matching token
Date Wed, 01 Oct 2003 21:25:37 GMT
Hi,
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.
Thanks.




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message