Replaced the lazy quantifiers with greedy