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 ++

Categories

HOME
forms
android-studio-2.2
saml-2.0
jsf-2.2
devise
replace
pdfbox
javacc
tivoli
hugo
crystal-reports-2013
jxl
docx
microsoft-dynamics-nav
forgot-password
jersey-1.0
boost-icl
replication
user-experience
exit
highstock
jquery-callback
google-api-client
dapper-extensions
windows-server-2003
xcode-ui-testing
itunes
google-cast
event-flow
raft
openproject
jpad
signals-slots
levenshtein-distance
movilizer
plr
manova
edit
android-testing
pdf-conversion
pocketsphinx-android
mapxtreme
xcode-server
vulcanize
udpclient
riot
nss
uiactionsheet
createprocess
atan2
java-money
pypiserver
morton-number
android-launcher
typemock
amiga
bufferedinputstream
fail2ban
bcache
ejb-2.x
showdialog
webmatrix-3
ghcjs
appserver
entry-point
nsmenu
mobility
ray
kendo-dataviz
mantle
cakephp-1.2
pyunit
rmiregistry
adobe-media-server
objectquery
promotion-code
automationelement
webdev.webserver
cuteeditor
http-daemon
twitterizer
load-time
jqueryform
zend-rest
wcf-instancing
cuda.net
linfu-dynamicproxy
lemmatization
appliance

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App