Difference between '.' , '?' and '*' in regular expressions?
The .+?
form requires at least one character to match, while .*?
can match none at all. Both operations are non-greedy, so they will try to find the shortest possible matching string.