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

How can I shift the current line to the middle of the screen?
highlight text containing special characters in notepad++ program
Updates not being checked in Notepad++?
RegEx how to insert text in a previous line of searched text in notepad++
notepad++ udl for log4net how to highlight the rest of line after the word that contains key word
How do I indent code in Notepad++
Notepad++ showing null values after crash
how to extract the text between two strings multiple time in a sentence using notepad++
Remove breakpoints from the margin in Notepad++?
Using Copy and Paste in Notepad++
Why wont my CSS syntax register?
How to Create Custom Shortcut for Language Selection in NOTEPAD++
notepad++ delete duplicate and original lines to keep unique lines
How do I swap cases in Notepad++?
user defined language comment style needs /n newline in notepad++
Notepad++ syntax highlighting : conflict in rules

Categories

HOME
sonarqube
ns-3
3d
graphics
devise
python-multithreading
android-json
mvc5
nfs
okhttp
categorical-data
drop-down-menu
mautic
supervisor
shared-libraries
3nf
modbus-tcp
forgot-password
pyramid
connector
ag
articulate-storyline
babel
libigl
gulp-watch
exit
aggregation
froala
browser-sync
zend-debugger
cognos-bi
rselenium
papaparse
installshield-le
activexobject
searchkit
sim-toolkit
p4merge
tcc
photos
robomongo
chai-as-promised
geotiff
datamaps
restore
cronexpression
vulcanize
mongodb-php
cifilter
eigenvector
dbamp
redis-cluster
contentcontrol
libvlc
.bash-profile
ember-cli-rails
lasso
finalbuilder
baasbox
zend-currency
sonarqube-5.0
post-commit-hook
formview
authlogic
drupal-nodes
rolify
scringo
gpars
flex++
time.h
actiondispatch
wcf-configuration
garbage
apache-whirr
filemerge
drawtobitmap
creole
uipagecontrol
massive
twitterizer
application-verifier
mathematical-notation
google-wave

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