Use non-greedy quantifier for wildcard regex.