Zo has asked for the wisdom of the Perl Monks concerning the following question:
$report; $report=~s/[0-9]//g; # filter out any numbers $report=~s/_//g; # filter out any underscores $report=~s/CRS//g; # filter out the phrase 'CRS' if caps $report=~s/crs//g; # filter out the phrase 'crs' if lower $report=~s/-//g; # filter out dashes $report=~s/html//g; # filter out the phrase 'html' $report=~s/\.//g; # filter out decimal points print $report;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Pattern Matching
by jeffa (Bishop) on Dec 16, 2002 at 16:01 UTC | |
by merlyn (Sage) on Dec 16, 2002 at 17:54 UTC | |
by Popcorn Dave (Abbot) on Dec 16, 2002 at 17:07 UTC | |
by fruiture (Curate) on Dec 16, 2002 at 17:11 UTC | |
by Popcorn Dave (Abbot) on Dec 16, 2002 at 17:14 UTC | |
by jeffa (Bishop) on Dec 16, 2002 at 17:11 UTC | |
by Aristotle (Chancellor) on Dec 16, 2002 at 20:19 UTC | |
by Mr. Muskrat (Canon) on Dec 16, 2002 at 16:06 UTC | |
|
Re: Pattern Matching
by gjb (Vicar) on Dec 16, 2002 at 22:16 UTC |