H
H
HelpSophie2020-02-15 13:48:16
phpstorm
HelpSophie, 2020-02-15 13:48:16

How to remove all SVGs on a page using PhpStorm?

There is a page and a bunch of different SVGs are inserted inline on it.
Can I somehow delete them in bulk using search and replace? I'm tired of deleting it already :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-02-15
@HelpSophie

Maybe in phpstorm there is something more magical, but a universal solution for any normal editors: regular expression:
<svg [\s\S]*?</svg>
Specifically in phpStorm:
1. Ctrl(+Shift)+R;
2. tick on Regexp;
3. Replace all.
In general, regular expressions are recommended to be studied - an indispensable thing and greatly simplifies the work with any text. And do not look that they are scary in appearance: writing them is much easier than reading.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question