Make matches non-greedy (fixes #4).