in reply to URL's

Why use a regex on the whole file? Find the position of the text "last:" using index(), and then use a regex, on a small substring of the file starting at that particular offset.