I have a file with lots of text editing using NotePad++.
for example
some textanother
example from notepad : trying to replace this text: 0x0145 test with this text: [0x0145] test
Use a regex like: <span class="italic">([\w\s\d]+)</span>
and replacement like: <i>$1</i>
The important point here is to create a matching group for your text by surrounding it in brackets i.e. ([\w\s\d]+)
which matches one or more:
\w
word chars\s
space chars\d
numeric charsNow in your replacement string, reference the first and only matched group with $1
.
<span class="italic">([^<]+)</span>
=> <i>\1</i>
<span class="bold">([^<]+)</span>
=> <b>\1</b>
[^<]+
matches one or more of any character except <
, and the parentheses capture it in group #1. \1
inserts the captured text into the replacement string.