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;
|
|---|
| 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 |