in reply to Re^6: Thanks to Ikegami, Chromatic & Corion
in thread Thanks to Ikegami, Chromatic & Corion
Got it!
my %escapes = ( '&lab;' => '<', '&rab;' => '>', '&lcb;' => '(', '&rcb;' => ')', '&lsb;' => '[', '&rsb;' => ']' ); my $escapes_re = qr/&[lr][acs]b;/; $aXML =~ s/($escapes_re)/$escapes{$1}/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Thanks to Ikegami, Chromatic & Corion
by ikegami (Patriarch) on Nov 02, 2011 at 05:14 UTC | |
|