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

Regular Expression to match rows with less char count
ELO credit card regular expression [closed]
Fetch only first alphabet word from column in Postgresql
awk regex last occurence of character/pattern
Regex to exclude certain file extensions
Regex to get subchild from xml response [duplicate]
Need Help combining two Regular Expressions
RegEx for URLs with a constant the end
Creating Specific Postcode Regex [duplicate]
Replace segment of URL in place
MarcEdit append 001 field
Regex: Match Characters After Multiple Underscores but not including Underscore
Replace & with & with retaining string length in Perl
Regex Pattern for multiple elements in XSD
Match all consecutive numbers of length n [duplicate]
Regex - Use Regular Expression to swap two different tags with contents

Categories

HOME
validation
unit-testing
module
runnable
x-editable
typeahead.js
windows-runtime
box
google-analytics-api
documentation
windows-10-desktop
copy-paste
axure
nservicebus
nanotime
oracle11gr2
jmeter-plugins
game-maker-language
jet
aspdotnetstorefront
wso2cep
robotium
core-location
liferay-aui
intersystems
typemock-isolator
rrd
asp.net-identity-2
arduino-esp8266
opensuse
localdb
scom
jtapi
blockui
fipy
titanium-alloy
folly
dsx
visualsvn-server
essbase
gradle-tooling-api
permgen
mergesort
azure-cdn
html-form
smartbanner
android-gps
fido
tpl-dataflow
android-identifiers
jvm-arguments
mysql-error-1050
callkit
masspay
itamae
building
webpagetest
visual-build-professional
dms
python-3.1
webmail
intrinsics
mars
google-api-ruby-client
occam-pi
membership
genetic
uac
cocoon-gem
cbc-mode
spatial-index
fortrabbit
javaw
janino
simpleadapter
mpj-express
private-methods
bunny
mouseenter
lightstreamer
preon
dfsort
array-address
source-highlighting
northwind
datakey
rpn
freeglut
maven-bundle-plugin
expression-encoder-sdk
semantic-zoom
b-method
magento-1.5
exact-synergy-enterprise
jammit
formsauthentication
cracker
gedcom
docking

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