With the intent to match multiline comments, I found the following regex:
(?:/\*(?:(?:[^*]|\*(?!/))*)\*/)
It is described here. It isn’t perfect (it matches comments inside strings), but it works well enough for my purpose. However, it does not work in Notepad++. I tried escaping different things, but with no better results.
Does anyone know how to make this regex work in Notepad++?
Notepadd++ uses scintilla’s regular expression engine (according to its online help).
This page says that “in Scintilla, regular expression searches are made line per line,” so unfortunately I think it’s hopeless.
— EDIT —
A little further digging turned up this notepad++ forum post, which offers some hope after all. Specifically, it says that notepad++’s PythonScript plugin supports multiline regular expressions.