The goal is to replace multi-line comments in the NetBeans IDE.

/** text */ 

So it could work:

#\/\*\*.*?\*\/#s

But I did not find where in NetBeans you can add flags to regulars.
To list all possible characters is not an option.

Multiline - I mean not the type of comments, but the fact that they contain line breaks.

    1 answer 1

    I don’t know how to use a netbince, but in phpStorm, the following regular schedule has worked to find multi-line comments: \/\*\*[\s\t\n]*.*?[\s\t\n]*\*\/

    alt text

    • Thanks, works great. - sergin