laziness, impatience, and hubris | |
PerlMonks |
Re: Pimp My RegExby tlm (Prior) |
on May 31, 2005 at 18:35 UTC ( [id://462154]=note: print w/replies, xml ) | Need Help?? |
I'm trying to understand the rationale behind your regex. Don't you want something more like ? If so, then it I would process the file line-wise, and count only those lines that begin with your date pattern. Or, if you need to do more than just counting, then something along the lines of
Update: Added the more extended second alternative. Update 2: Fixed bug (last line of code was missing). the lowliest monk
In Section
Seekers of Perl Wisdom
|
|