Improve Regular Expression Speed

Replace regular expression literal with constant, to follow existing
style. Replace greedy match with non-greedy match.

Tests reveal modest speed increase.
Merge pull request #759 from ElliotJH/nongreedy-precompiled

Improve Regular Expression Speed