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

Find and Replace Function with an Indexed Table
Searching a word in multiple file type
Add Special Symbols to the end of a line in Notepad++
replace a pattern with some other text in Notepad++
How can I customize toolbar with Notepad++
Notepad ++ generate lines with the same string
With Notepad++ how can I change the vertical outline color?
Notepad++ Join indented lines
Notepad++ Column lenght of a text
How to copy text within parentheses to the start of the line?
Notepad plus Color Highlight function implementations
Remove a BOM character in a file
Notepad++ sorting lines without a dot at the end
Column editing (Alt+Left mouse click and drag) is not working on Notepad++ while in remote desktop
Suddenly Jslint plugin refuses to work (JSLint can operate only on JavaScript…)
How to do this edit in notepad++

Categories

HOME
paraview
rdbms
3d
youtube-data-api-v3
apache-spark-mllib
components
jwplayer
database-normalization
nsbundle
cakephp-3.4
big-o
babeljs
jquery-ui
octave
google-chrome-app
pega
ycsb
angular-dart
plink
scrolltop
docx
altera
azure-iot-hub
forgot-password
nim
topology
database-connection
highstock
xunit
data.stackexchange.com
carrierwave
glib
browser-extension
imx6
navigator
servicestack-text
zoomify
tex
google-data-api
odoo-website
portforwarding
apollostack
drupal-theming
plan-9
puredata
chai-as-promised
spring-data-couchbase
ngmaterial
mouseleave
donations
vcloud-director-rest-api
usart
macaulay2
blitline
grgit
toolkit
entity-framework-4.3
zend-currency
diff3
rrule
actionfilterattribute
delayed-execution
nodelist
spy++
linkedin-jsapi
strawberry-perl
gnumeric
amslidemenu
inappsettingskit
merb
pagedown
windows-98
android-sdk-2.3
panda3d
listitem
google-maps-mobile
htdocs
listactivity
jqote
pylucene
uipagecontrol
alsb
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