V
V
Vodol2019-10-14 23:00:14
Regular Expressions
Vodol, 2019-10-14 23:00:14

How to move text from one line to another?

I have a large html file that has the following structure:

<li class="one a111">
<span class="id">1.</span>
<a class="link" target="_blank" href="/1/">One</a>
</li>

<li class="one a222">
<span class="id">2.</span>
<a class="link" target="_blank" href="/2/">Two</a>
</li>

It is necessary to move inside the first a111 from to , and inside the second a222 move from to . Is this even possible in Notepad++? Or in another editor. If possible, please tell me how. Thank you. <li></li><li class="one a111"><a class="link a111"...<li></li><li class="one a222"><a class="link a222"...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vreitech, 2019-10-14
@Vodol

find: class=\"one\s(\w+)\"(.*?)class=\"link\"
replace with:class=\"one\"\2class=\"link \1\"
5da4dab9438f8350908121.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question