or an equivalent tr construct.s/[\cA-\cZ]+//g;
Note also that your use of ^ means you are only going to replace matches at the beginning of the string - at most one character in your example. Which from your description doesn't seem to be want you want.
In reply to Re: Control characters
by JavaFan
in thread Control characters
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |