notepad++
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'
If all fields are ALWAYS containing alphanum and dash, you can do: Ctrl+H Find what: ([\w-]+) Replace with: '$1' Then click on Replace all ([\w-]+) is a character class that matches alphanumeric character (including underscore) and dash. This will replace each field by the same with single quotes arround it.
you can use expreg like this: replace ^(.*)$ with '\1'
Use the replace function. Check the Checkbox named Regular expressions. Then replace ^ (beginning of the line) with single quote. $ (end of the line) with single quote. and , with ','. This three replacemants should do the Job.
Related Links
Notepad all line replace with integer values
Separate sentences in a text with notepad++
Escape encode file paths in notepad++
add footer to multiple files
How to edit 'column select' shortcut in Sublime text 3 portable
Notepad ++ remove duplicated folded blocks not lines
Notepad++ Column Editor
remove string between underscore and character
Launch any browser with Notepad++ RUN
Swap text around a character
fold/unfold selection only in Notepad++
How can I use TagsJump for files accessed over NppFTP (using sftp) in Notepad++?
Notepad++ plugin sourcecookifier doesn't recognize makefiles
Notepad++ opening files containing En dash character
Notepad++ crashed and overwrote file with empty version
I have simple text file with more than 100k lines and I want to delete the lines which does not contain double quotation in notepad ++