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

Get a difference file by specific patterns in two text files
Regular expression for $ amount fields with or without bracket
when [:punct:] is too much [duplicate]
Regular expression to replace a part of a config file
Regular expression to move numbers from the start of a string to the end
Why does the word boundary not match?
regular expression dont allow partial matching
Regex to validate phone numbers, making sure there are no letters in them
EXtracting sub-string in Perl?
ANTLR4 Lexer Matching Start of Line End Of Line
Regular expression to extract a sentence that has the frequecny of word ony twice?
Efficient Replacement of Double-Byte Numerals to Single-Byte Numerals
Regex Match Ampersand but not escaped xml characters
Regular expression in java to extract URl from HTML
mixed multiple extensions and file match with POSIX regex
Complex Regex to search for a phrase and then a number within a limited scope

Categories

HOME
matlab
mocking
bootstrap-4
bootstrap-selectpicker
windows-runtime
streaming
arm
addeventlistener
tin-can-api
jena
zipfile
struts2-jquery
tcplistener
google-maps-sdk-ios
wso2-das
wavelet
editor
jsqmessagesviewcontroller
next
slowcheetah
jpos
jet
centroid
google-distancematrix-api
aspdotnetstorefront
cadvisor
easendmail
digital-logic
rets
spring-batch-admin
desktop-app-converter
toolbar
scatter-plot
localdb
ollydbg
sinon
runc
permgen
integer-programming
sdcc
maven-jetty-plugin
ase
hydra
clientscript
multisite
recurrence
tryton
omniauth
singlepage
vispy
hapi.js
facebook-audience-network
agents-jade
trello.net
training-data
multiple-files
post-processor
spymemcached
wt
julian
cbc-mode
bloodhound
ehcache-bigmemory
windows-universal
gitattributes
mpj-express
office-2010
datacontractserializer
directcompute
notifydatasetchanged
magic-unipaas
lightstreamer
tlb
sqlprofiler
xidel
micro-orm
sugar.js
xhtml-transitional
google-provisioning-api
arden-syntax
sticky-footer
ekeventkit
proxy-classes
gemstone
datatemplate
sharepoint-timer-job
plinqo
directoryentry
nscollectionviewitem
winamp
automapping
drupal-gmap
chickenfoot

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