Can you be more specific what you are parsing?
I'm quite sure that this issue can be solved in better way.
One of possibilities is union of regular expretions:
Qt Code:
while(1) // this (!in.EOF) was wrong! { line = in.readLine(); if (line.isNull()) { break; } if(line.contains(regExp)){ int i; for (i=0; i<result.count(); ++i) { if (!result[i].isEmpty()) { break; // or some action to take } } // process i value } }To copy to clipboard, switch view to plain text mode
Bookmarks