Doing the reverse will be a lot more tricky, unless you add a character to the start of each hex replacement to mark it out as such.perl -e '$_ = q(^%@|CaD5H); s/([^\w-])/sprintf qq(%lx), ord($1)/eg; pr +int'
In reply to Re: Quick Regex Question
by kilinrax
in thread Quick Regex Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |