Quote:
Originally Posted by Pavulon
Would you have an explanation, not too learned for me, as to why the formula (.*?)? only works when the chain is present, whereas the quantifier says (0 or 1)?
|
The expression
(.*?)? is actually quite specific and I don't think I've ever used it. It works by matching an optional (0 or 1) group, which in turn tries to match as few characters as possible.
Look
here. That "empty string" in the first line does not literally mean that something is "present."