dist-git help wanted: write me a regex!
cmadams at hiwaay.net
Mon Dec 21 18:36:04 UTC 2009
Once upon a time, Jesse Keating <jkeating at redhat.com> said:
> $logmsg =~ s|/((Mon|Tues?|Wed|Thu(rs?)?|Fri|Sat|Sun)\s+(Jan|Feb|Mar|Apr|
The first character after the "=~ s" is the delimiter, so you are saying
search for "/((Mon" and replace it with "Tues?" and then "Wed..." are
arguments. The regexp as sent (delimited with "/") was just a match,
not a search/replace.
I don't know the code; what exactly are you trying to do here? Strip
out date/email lines?
Chris Adams <cmadams at hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
More information about the fedora-devel-list