"Telefónica to Sell Spanish Assets"
I want to be able to quickly change all these codes to their proper ascii characters.
Code: Select all
(set 'x "Telefónica to Sell Spanish Assets")
(find {&#(.*);} x 0) ; reference only
(regex {&#(.*);} x)
; > ("ó" 5 6 "243" 7 3)
> $1
; > "243"
(char (int $1))
; > "ó"
How can I do the above in one quick pass, where I get all the {&#(.*);} and replace them with (char (int $1)) ... without doing a loop through everything over and over until the (regex) finds nothing?
I feel like I am missing some (map) or (replace) iterative operator.