Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to bring any character [ ex ; ] to a line before in notepad++ for all the sequence

I have some statements like this in notepad ++

INSERT INTO ZZZZZZZ (A,B,C,D)
VALUES (1,2,3,4)
;

I need to put the semicolon after the end of line 2 for all the occurrences.
Desired output :

INSERT INTO ZZZZZZZ (A,B,C,D)
VALUES (1,2,3,4);

How to do that in notepad++

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You may try the following find and replace, in regex mode:

Find:    $\R;
Replace: ;

Demo

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading