Community : Comments : Tcl Tips -- Regular Expressions : Thread

[ Post Message | Show Statistics | Associated Web Page ]


messages 1 - 1 of 1


This message has been viewed 2221 times

tcl regsub

Posted By: vtruong   Post Date: March 31, 2003
I have xml strings of: <company>10023</company><status>10012</status><abc>false</abc><xyz>bi&ke</xyz><def>test</def>

How do I search only <xyz>bi&ke</xyz> and replace & in bi&ke with "_" ? Thus the result replacement should be "bi_ke" .

I've tried so many variations and could not get it to work. Any help is greatly appreciated.

Thanks.

  [ Email to Friend | ] Votes: 0



me@rustybrooks.com