A
A
awak6e2018-01-02 17:02:19
Notepad++
awak6e, 2018-01-02 17:02:19

Notepad tag replacement?

Hello. How to replace tags in notepad++
<param name="random">RANDOMTEXT</param>
with this:
<tag>RANDOMTEXT</tag>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vittalezz, 2020-08-20
@vittalezz

If anyone else needs an answer...
Source string: Find (with regular expression): Replace with: Result: PS In this case, insert the result of the second regular expression "(.*?)" into the text, for this we enter "\2 "in replacement. "(.*?)" is any text.
<param name="random">RANDOMTEXT</param>
<param(.*?)>(.*?)</param>
<tag>\2</tag>
<tag>RANDOMTEXT</tag>

D
DrunkMaster, 2018-01-02
@DrunkMaster

<param name="random">this is a regular replacement type<param(.*?)>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question