"be consistent" | |
PerlMonks |
Re^3: Title Re: collapsing revisitedby Aristotle (Chancellor) |
on Jun 08, 2002 at 21:06 UTC ( [id://172837]=note: print w/replies, xml ) | Need Help?? |
Like tadman++ noted the problem is that once you use it, all regexes anywhere in the script become slower - not likely to be tolerable in the context of the Everything engine.. And this one in particular is pretty simple:
$title =~ s{((?:Re: ){2,})}{"Re(" . length($1)/4 . "): "}ge;
Works a treat for your test cases.
Makeshifts last the longest.
In Section
Perl Monks Discussion
|
|