Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add single quote “ ' ”at beginning and end of field?

I need to add a single quote at the begining and end at field in NotePad++.

EX:

MLOS-032,MLOS-104,MLOS-159,MLOS-189,MLOS-267,MLOS-270,MLOS-315,MLOS-333

Desired result:

'MLOS-032','MLOS-104','MLOS-159','MLOS-189','MLOS-267','MLOS-270','MLOS-315','MLOS-333'
like image 680
Sundar Avatar asked Jan 20 '16 12:01

Sundar


1 Answers

you can use expreg like this: replace ^(.*)$ with '\1'

Look at the image

like image 117
ahammar Avatar answered Oct 13 '22 16:10

ahammar