in reply to Range of chars except one
which should work just fine, although I haven't tested it for speed. You can jsut keep specifing more ranges for those chars you wish to exclude, although it becomes rather clunky looking if you have a large number of ranges.$startCh = chr(0); $midstopCh = chr(9); $midstartCh = chr(11); $endCh = chr(31); $text =~ s/[$startCh-$midstopCh,$midstartCh-$endCh]//g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Range of chars except one
by IlyaM (Parson) on Jan 21, 2002 at 05:04 UTC |