Lazy match(non-greedy quantifier, reluctant quantifier)

A quantifier with a question mark after it that takes as few characters as it can. It stops at the first fit, which is what a pair of tags needs to avoid swallowing the text between them.

Back to the glossary