Added greediness control for repeat matching elements