in reply to Pattern Matching
$report =~ tr/0-9//d; # numbers $report =~ tr/-_.//d; # underscores, dashes, and periods $report =~ s/crs//ig; # crs, lower or upper $report =~ s/html//g; # filter out the phrase 'html'
Update
Nice catch merlyn. I'll leave that comment untouched,
as i had originally tried /_-./ before posting.
I should add that i rarely use comments like that anymore
as they are maintenance nuisances, IMHO.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: (jeffa) Re: Pattern Matching
by merlyn (Sage) on Dec 16, 2002 at 17:54 UTC | |
|
Re: (jeffa) Re: Pattern Matching
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 | |
|
Re^2: Pattern Matching
by Aristotle (Chancellor) on Dec 16, 2002 at 20:19 UTC | |
|
Re: (jeffa) Re: Pattern Matching
by Mr. Muskrat (Canon) on Dec 16, 2002 at 16:06 UTC |