regex


Regex add text to code [duplicate]


I am using the following expression:
Find what: [0-9]
But what should I write in Replace with field if I want to add specific sup tag to all the digits?
Thanks in advance!
The replacement can be
<sup>$0</sup>
or
<sup>$&</sup>
Note that the $0 / ${0} / $&, or even $MATCH and ${^MATCH} backrefrence inserts the whole match.
See the Substitutions section:
$&, $MATCH, ${^MATCH}
The whole matched text.
and
$n, ${n}, \n
Returns what matched the subexpression numbered n. Negative indices are not alowed.
Note that a match value is usually stored as Group 0 inside a match object.
However, \0 as of now does not work (Notepad++ v.6.9), it looks like it is treated as a NUL character and truncates the replacement pattern right at the location where it is located.

Related Links

Changing permalinks using mod_rewrite now gives internal server error 500
Node.js + express + regex paths, on page refreshes node.js doesn't send a responce
Putty command to find files that are not named in Roman letters
Regex select XML Element (containing hyphen) and inside content
Notepad++ remove all text except 8 character string containing digits [closed]
Removing leading, trailing and multiple spaces within a string
Find the repeating string in the txt file and modifiy with samename_modified format
Redirect in subfolder .htaccess
Simple Regular Expression matching
.htaccess ReWrite wildcard folder paths from host
Replace a line in the file using sed, line has a moving portion in the center of it
Reg exp to replace variables in URI [closed]
$sr_no =~ s/^(0*)(.*)/$2/ , what does mean in perl script?
.htaccess rule for getting requested file size
Htaccess mod_rewrite - slash
REGEX: DOS FindStr Command Has No Inverse Class Capability?

Categories

HOME
amazon-s3
svg
gwt
identityserver4
collections
orbeon
crf
servlets
appium-ios
haskell-stack
afp
bootstrap-selectpicker
google-cloud-dataproc
libreoffice
redhat
antlr
wikipedia-api
angular-mdl
google-analytics-api
pyusb
dbus
prestashop-1.7
research
google-weather-api
lighttpd
message
round-robin
org-mode
oracle11gr2
contains
ghost-blog
amazon-cloudfront
c-strings
microphone
precision
iteration
flexjs
editorconfig
launchpad
arduino-esp8266
solarwindslem
gcp
instance
matterjs
scatter-plot
dashboard-designer
server-sent-events
msal
amazon-elasticsearch
h5py
win2d
sdcc
domdocument
biological-neural-network
qtcpserver
getelementbyid
ipmi
shift-reduce-conflict
xceed
restbed
uiswitch
okuma
balana
hl7-v2
xelement
metalkit
radix-sort
oracle-bi
uac
core-data-migration
android-gpuimageview
netbsd
selectsinglenode
bonfire
abort
gevent-socketio
solr-boost
cordova-cli
wso2as
janino
spiceworks
chatjs
office-2010
imaging
ash
bunny
dojo.gridx
xcode6.1.1
mongo-shell
array-address
prudentia
emitmapper
ccombobox
scrollpane
gdb-python
argumentexception
memento
shebang
libavg
cellid
expression-encoder-sdk
dired
textboxlist
nntp
combinators
cluetip
machine.config
hunchentoot
program-transformation
server.transfer
roguelike

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