Yes, though you might want to lay this out over two lines.
s{([\t\n\r\f])}{ local $_= '\\' . $1; tr[\t\n\r\f][tnrf]; $_ }eg
In reply to Re: Can this be a 1 line or simpler regex?
by BrowserUk
in thread Can this be a 1 line or simpler regex?
by smackdab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |