Answer the question
In order to leave comments, you need to log in
How to autocorrect tags without taking into account the content between them?
Good day.
There is a huge piece of code in which there are many places like: <span class="color_red">text text text</span>
You need to do autocorrect, let's say with: <strong>text text text</stong>
I know, for example, how to replace only with the same in notepad ++ and then the same, but separately with . Then, yes, we will not touch the text and everything seems to be fine..
..only everything will change , but in the code, not only:
..but also say..
..and then I will get in places a mess of the form:
..what is rave.
Theoretically, it is somehow possible to make a replacement like this:
on
Hence the question: "But how, in fact, can it be done? How? And is it possible at all?"
I hope I made it clear.<span class="color_red">
<strong>
</span>
</stong>
</span>
<span class="color_red">text text text</span>
<span class="color_blue">text text text</span>
<span class="color_blue">text text text</strong>
<span class="color_red">%%ignore_text%%</span>
<strong>%%ignore_text%%</strong>
Thanks for the possible answers.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question