Replace all newline not followed by specific

notepad++, regex

Solution

Try lookahead assersion:

\n(?!#)

Problem

I can easily find '\n' in notepad++, but my problem here is that I have to find '\n' when not followed by a specific character ("#" in this case). So do I use Regex with '\n'? Is it possible? Example : ``` Stuff to ignore #Like that Stuff To change ```

Original source

Related problems