K
K
krll-k2014-05-21 00:43:32
HTML
krll-k, 2014-05-21 00:43:32

How to find all tags with the href attribute in Sublime Text, remove them, and still leave the content?

There is an open file in Sublime Text, you need to use the search to select all the reference tags. Select based on the href attribute. How to remove traces of all tags using find and replace? At the same time, the content itself should remain. How to search using regular expression in Sublime Text?
What will the regular expression look like? How to apply it in Sublime Text?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
1
1001001 111, 2014-05-21
@krll-k

href="[^"]+"
In line replace leave empty value

R
Roman Misyura, 2014-05-21
@MindMinimal

Isn't it easier to select the href part and use ctrl + d to select all the tags and then just delete them?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question