in reply to How do i replace one variable with another after searching for a pattern

N.B. -- the OP let me know (via private message) that he'd also like to replace these angle-bracketed hex values with their corresponding ASCII characters. So here's the answer to answer that question as well:

Just like above, except with this regex:

s/<([0-9A-F]+)>/chr(hex($1))/eg;
  • Comment on Re: How do i replace one variable with another after searching for a pattern
  • Download Code

Replies are listed 'Best First'.
Re^2: How do i replace one variable with another after searching for a pattern
by Niklaus Mikaelson (Initiate) on Jul 31, 2014 at 23:58 UTC

    Thanks a lot, its working for me !!!