A
A
Alex Goncharov2017-10-27 12:00:16
Sublime Text
Alex Goncharov, 2017-10-27 12:00:16

How to replace links in all files containing href="...#popup" using Sublime?

There is a folder with web pages, inside them there are links like:

<a href="link1.html#popup-login"></a>
<a href="link2.html#popup-reg"></a>
<a href="link3.html#popup-reg"></a>
<a href="link4.html#popup-login"></a>
<a href="link5.html#popup-reg"></a>

How, if
in any of the links,
in any line,
in any of the files
#popup-... occurs - 
how to replace them with one, another link?
As a result , any link containing the characters "#popup-" should be replaced with one, another, arbitrary link.
Is it possible to do this with Sublime Text 3?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question