regex - How to move multiple lines to join another in notepad++ -
i have thousands of lines of code in notepad++ looks following:
befwwef :efiewmfewfm krtmhrthmrt :ewfowoofowwwwww fwmfemwf :wefiwenweniewnf
i need each of 2 lines join this:
ewfwfwefew:ewiekdmdm
i'd kill space in between lines of lines without space:
ewfwefewewf:ffewwefwe fweef:ewfwefwefewf ewfwefwefewfw:wefweffwfewfw ewfwewef:eweewewwe
i'm sure easy fix started using find , replace feature in notepad++ today, i'm trying find each line ":" on them i'm not sure how keep colon , backspace line join other.
appreciate i've searched simple fix looks complicated me @ moment!
thanks
you can use regular expression mode of find & replace (you need opt search mode).
in find, use:
\s*:\s*
[\s
matches space, tab, newlines , *
means 0 or more times.]
and in replace, use:
:
shouldn't hard.
Comments
Post a Comment