Hello wise monks, I'm using the following regexp for substituting non-ascii characters with a question mark:
s/[[:^ascii:]]/\?/g;My question is how to substitute all non-ascii characters with their hex-code using regexp. For example, required output would be: "This is string with non-ascii characters, like e2"
In reply to hex in regexp by shamanoff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |