in reply to Control Characters (\xNN) in HTML
You need to escape the backslash character: s/\\x(\d+)/'&#' . hex($1) . ';'/ge works for me.
Oddly, you have doubled it in the loop you posted, but not in the original regexp
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Control Characters (\xNN) in HTML
by garliqua (Novice) on Oct 18, 2001 at 21:03 UTC |