R
R
RudFox2020-01-20 16:35:45
HTML
RudFox, 2020-01-20 16:35:45

How to remove all "a" tags from code?

For example here is the code:

<p><a href="ссылка1">текст</a></p>
<p><a href="ссылка2">текст</a></p>
<p><a href="ссылка3">текст</a></p>
<p><a href="ссылка4">текст</a></p>

I want to use the editor to select and remove all a href="...." tags at once. The problem is that each of them contains its own unique link. Selecting and deleting just all the "" tags is no problem. And here's how to highlight despite the different content in href="". Is it possible to somehow select from the beginning tag "a" and everything up to the closing ">"?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AUser0, 2020-01-20
@RudFox

<a href="[^"]+">[^<]+</a>with "Regular expresion" turned on in "search mode", of course.

A
alex1478, 2020-01-20
@alex1478

Regex:
<p><a href=".*">текст<\/a><\/p>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question