(Note I'm using octal here). This specifies that the newline character is replaced by itself, while everything else in that range is deleted.$string =~ tr/\n\000-\037/\n/d;
There are three advantages to this method: <NL>
In reply to Re: Re: Range of chars except one
by kjherron
in thread Range of chars except one
by Marcello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |