Well, "the proven original" was simply intended to get the last <last> value from the <quickQuote> string, that's all. There was no such need in the alternative branch since you probably have a single <last> between the <extendedMktQuote> tags anyway, hence why it's not absolutely required to use it. It's not technically wrong to do so (at least for now, can't guarantee for the future), it's just about the pattern suiting the needs. 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.I just harmonized my expression, now using .*? for all string sections with arbitrary characters, just like in Mordasius original code. I still don't really understand if .* vs. .*? makes any difference at all, but since "the proven original" used this, it's probably not a wrong choice.
Statistics: Posted by Yincognito — Today, 7:58 pm