/(?<fname>\w+\b) # Looks for "\w" (Word characters followed by a word
+boundary (look up \w and \b)
# and creates $+{name}
\s(?<mname>\w+)\s # Same thing - Whitespace on both sides
(?<lname>\w+\s) # Same thing
.*\[(?<date>[^\]]+)/ # looks for "[", followed by anything that is NOT
+ "]", and populates $+{date}
All this is in the "perlre" document.
“PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals.”
― Jon Ribbens
|