Problems? Is your data what you think it is? | |
PerlMonks |
Re: capture groups are not working -- why??by frozenwithjoy (Priest) |
on Jun 05, 2013 at 19:57 UTC ( [id://1037290]=note: print w/replies, xml ) | Need Help?? |
AnomalousMonk pointed out your problem, but I wanted to add a couple suggested changes to the regex for readability: m|^Current time => (\d{4})(\d{2})(\d{2})\.(\d{2})(\d{2})(\d{2})|sI think this helps the reader easily see the pattern of #s being matched (4-2-2-2-2-2). Also, I changed the \S to \. under the assumption that it will always be a period rather than any non-white space character.
In Section
Seekers of Perl Wisdom
|
|