in reply to Re: convert scalar to wide hexadecimal value? how?
in thread convert scalar to wide hexadecimal value? how?

Indeed, thanks ... regex is not my strong point anyway, so hence a little additional question, suppose I have multiple <U+xxxx> codes in the string like for instance  "TEST <U+010C> <U+0158> <U+0147>"... how does the regexp look like then?

Replies are listed 'Best First'.
Re^3: convert scalar to wide hexadecimal value? how?
by merlinX (Novice) on Jan 14, 2009 at 12:43 UTC
    Just found it ... I guess I have to add the g of global right?
    $text =~ s/<U\+([0-9A-Fa-f]+)>/qq!"\\x{$1}"!/gee;
      Indeed.