w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Regex in Notepad ++ - Remove the line break “ ” after a “$” character in Notepad++

Use a lookbehind to match all the newline characters which are next to the $ symbol. Replacing the matched characters with empty string will give you the desired result.

(?<=$)

If you want to remove one or more newline characters present just after to $ then add a + after in your regex.

(?<=$)
+

Use the below regex if you want to remove one or more new line or carriage return characters.

(?<=$)[
]+

DEMO





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.