Miller
Thanks for the advice. I was not familiar with the syntax. In fact I wasn't aware of the search and replace capabilities using evaluation. But I can't get it to work. Here is a simplified example of your suggestion :
my $text = qq{<TAG val="XXX">100</TAG><TAG val="XXX">1000</TAG>}...
Hey, thanks Franco!
It was indeed a problem with greedy matching. I'll have to look out for that in the future. Now I get the desired output.
Miller, I'm not familiar with your method...it might work, but Franco's tip requires the fewest modifications to my code, so I'll go with it...I will...
Hi everyone
I'm frsutrated by this problem and would really appreciate a hand. I may not be doing this the best way, so any suggestions are more than welcome...I want to replace certain sections of a string with other sections (substring replacements).
For example, I would like to go from...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.