Aah?! Now I get it?! ==> .*? is an "inversion" - matching the "last occurrence" in case more than 1 "<last>" tags are found while .* matches the first occurrence? Damn - I really tried to find such an explanation but e.g. regexr.com gives this explanation:Generally speaking, in most cases, you'd want an ungreedy (?siU).* behavior to guarantee that you get the first match coming after .*, and the .*? inversion was an exception dictated by necessity, since there were one or two <last> instances in the <quickQuote> and the last of those instances contained the desired value in the case linked above.
. Dot. Matches any character except line breaks.
* Quantifier. Match 0 or more of the preceding token.
? Lazy. Makes the preceding quantifier lazy, causing it to match as few characters as possible.
Maybe it's because I "ain't no native speaker" --> lazy means "inversion"? Maybe this is becoming too much off-topic... Sorry!!!
Statistics: Posted by emp00 — Yesterday, 8:36 pm