I'm recieving text input and I find that it has escape characters in it that I want to remove.
Under more and print, you obviously can't see these characters, but if you write out the contents of the variable to a file and vim it, you can see something like:
text^e^e^e^e
I'm using this to try and strip the characters:
$var=~s/someregex//g
Where someregex has been: \005,\cE,\ce,\x005,\x0x005
No luck. Anyone know what this mysterious escape character is and how I can get rid of it? Note that it only appears on the end of the string, and that the number of them is random.
Declarent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |