Quote:
Originally Posted by chaley
There is in fact a problem here, but not the one the OP was suggesting.
Second (the problem): the regexp tester does not show multi-line matches. The problem is that it uses the QSyntaxHighlighter, which my experimentation shows to be a line-oriented interface, making highlighting multiline matches impossible. I think that the regex texter should match directly against the text in the QTextEdit box, using something like setTextBackgroundColor to indicate matches. I admit that I haven't hacked the code to try this idea, but it seems plausible. I will file a ticket on this so that someone more acquainted than I am with the widgets can think about a solution.
|
Sweet.
Thank you so much for diagnosing that, and working out it's the display in the tester which was the issue (once I'd eventually got a working regex).
Much appreciated.
prk.