Skip to content

Instantly share code, notes, and snippets.

@sirhc
Created October 26, 2010 00:34
Show Gist options
  • Save sirhc/646092 to your computer and use it in GitHub Desktop.
Save sirhc/646092 to your computer and use it in GitHub Desktop.
my $log_regex = qr{
^ (?<revision> \d (?: [.]\d )+ ) \n
^ log \n
^ [@]r\d+ \s+ (?<user> \w+ ) \s+ [|] \s+
(?<year> \d\d\d\d)-
(?<month> \d\d)-
(?<day> \d\d)T
(?<hour> \d\d):
(?<minute> \d\d):
(?<second> \d\d)
}xms;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment