in reply to regex-matching the date

Note that the '+' modifier is greedy so your regex will match the entire string

You can use '?' to make it non-greedy  /(\w{3}\s+?\w{3}\s+?\d+)/ and the result will be stored in $1.

UPDATE: Ignore this post.