1 reply

(.?) or (.+?) are greedy quantifiers. If you use them, actually you are doing a wild card matching. If you know what content you will get, better use \d or \w. And yeah, . is expensive and may effect performance. Thanks