On Thu, 17 Feb 2011 20:45:58 +0100, Michael Snyder wrote: > You're right, there is an extra .* in there. > Can you please try the attached? It still FAILs. Shouldn't there be \[^\r\n\]* instead of \[\r\n\]*? BTW i7-920 (4 cores + hyperthreading), Fedora 15 x86_64. Attaching also my attempt first today but I haven't finished it to a state to make it running as I have too much stuff to do here now. BTW I do not like any .* there in such unanchored regexes, it is still too fragile while it may not cause problems right now. The part ". 3 .*\"... can match almost anything, some random digit between 1 to 6 can possibly appear somewhere and it can eat some text again. Thanks, Jan