Displaying 1 result from an estimated 1 matches for "nag1".
Did you mean:
nag
2008 Jun 19
2
Pattern Matching Replacement
I would like to replace "\r\n" with "" in a character string, where "\r\n"
exists only between < and >, how could I do that?
Initial:
characterString = "<XML><tag1
id=\"F\r\n2\"></t\r\nag1>\r\n<tag\r\n2></tag2></XML>"
Result:
characterString = "<XML><tag1 id=\"F2\"></tag1>\r\n<tag2></tag2></XML>"
Tried with sub(below) but it only replaces the first instance and I am not
sure how to pattern match so th...