Hi All,

I think this may be a but, but perhaps it's something I've missed.

It seems that when you use lastIndexOf it won't be greedy. I think it's because it's the way it works - checking each time from the an index working it's way backwards then when it hits a match it stops.

So say I've got a filename:
coolfilename02.153.ext
I want to split this into
"coolfilename02." , "153", ".ext"
So I used the expression ([0-9]+)(\..*)
running from the last index of the expression [0-9]+\.

Problem is as soon as the last expression hits 3.ext it returns as successful - whereas to be greedy it should keep going until it hits 153.ext

Any suggestions for a clean way to fix it or should I just dig into the implementation of QRegExp and submit it upstream? I know I could just implement the backward searching myself, but doing it such an ugly way seems like a bad choice compared with fixing it in Qt. (Assuming it's broken and I haven't just missed something).

Cheers,

Alan.