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 I can increase tab width in notepad++ (v6.5)?
Moving a large set of numbers to a new range in Notepad++
notepad++ to word: keeping style [duplicate]
UDL2 Folding style 2 only work with Windows EOL but not UNIX EOL
Replace text in Notepad++ [closed]
notepad++. replace dot and space with carriage return
Geany equivalent of ALT+5 (minimize blocks) in Notepad++
Custom regions for code folding in Notepad++
Notepad++ change all 'xx' for 'xx++'
How to execute a .smv file from notepad++
How to select multiple vertical characters in Notepad++
Sort case insensitive in recent versions of Notepad++
notepad++ how to switch nppftp window with keyboard?
How do I change the default EOL settings/encoding of new files in Notepad++?
Apply third party patch to Notepad++
Delete everything after a number of characters in string in Notepad++

Categories

HOME
uml
fabricjs
adal
vscode-extensions
cakephp-3.4
parameters
settings
rcloud
accessibility
spin
gson
plist
project-intu
redis-sentinel
jsonpath
openbugs
libusb
package.json
firefox-addon
soci
database-connection
babel
href
backpack-for-laravel
object-storage
outliers
oculus
android-maps
linked-data
iis-express
calculation
dst
jbutton
laravel-eloquent
python-pptx
sim-toolkit
apic
parse-tree
graphhopper
recurrent-neural-network
css-position
vmware-fusion
apriori
facebook-social-plugins
libgphoto2
opennms
linter
manova
android-testing
janus
flyout
google-photos
swingworker
cvxpy
visual-studio-2008-sp1
simplepie
angular2-testing
parfor
windows-azure-queues
nikeplus-api
expectations
refinerycms
nss
data-protection
np-spring
kendo-upload
dynamics-nav-2016
sciruby
wiredep
cgi-bin
visual-sourcesafe-2005
ember-cli-rails
graphics2d
node-serialport
rrule
mass-assignment
at-job
boost-program-options
android-vibration
filesplitting
insight.database
xml-namespaces
kissfft
verold
ora-00904
vsx
renderer
multiautocompletetextview
high-resolution
cnf
epiceditor
subproject
webdev.webserver
lr
object-database
build-environment
escrow
application-planning
firefox-3
cardspace

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