Colomban Wendling wrote:
Do you experience the same?
Yes
use "anything but Q or newline": [^Q\r\n]
OK, I accept it.
[^Q\n]*Q works. (Finds only inside one line.)
Lex Trotman wrote:
though you can set flags in the regex (?m).
I did not really succeed to use it. (I found the http://www.geany.org/manual/gtk/glib/glib-regex-syntax.html page.)
Neither of these worked: (?m)[^Q]*Q (?s)[^Q]*Q (?-m)[^Q]*Q (?-s)[^Q]*Q