I want to be able to strip any character that is does not appear in
the following list from a text string:
$LegalChars="\" !#$%&'()*+,-.\\/0123456789:;=?@ ABCDEFGHIJKLMNO PQRSTUVWXYZ[]^_`abcdefghijkl mnopqrstuvwxyz{ |}~";
And conververt the following:
£ to £
€ to €
‘ to '
' to '
" to "
" to "
• to •
So, if the input string was:
$Input = "Andrés says "...the € is very useful"";
The out at is generated is:
$Output = "Andres says "...the € is very useful"";
(I've marked the changes in red above)
Could anyone write me a little function that can do this?
Many thanks
the following list from a text string:
$LegalChars="\" !#$%&'()*+,-.\\/0123456789:;=?@ ABCDEFGHIJKLMNO PQRSTUVWXYZ[]^_`abcdefghijkl mnopqrstuvwxyz{ |}~";
And conververt the following:
£ to £
€ to €
‘ to '
' to '
" to "
" to "
• to •
So, if the input string was:
$Input = "Andrés says "...the € is very useful"";
The out at is generated is:
$Output = "Andres says "...the € is very useful"";
(I've marked the changes in red above)
Could anyone write me a little function that can do this?
Many thanks
Comment