@
@
@Twitt2020-03-30 12:46:15
PHP
@Twitt, 2020-03-30 12:46:15

How to delete data inside tags?

There are a lot of posts that have something like this:
< p>< span>%TEST% al %TEST2%< /span>< /p> and after that there is a lot of text
inside html placeholder tags
and that's what I need make a sql query so that this part <p>< span>%TEST% ald %TEST2%< /span>< /p> - disappears from all records where it is. How can this be done via mysql? Is this some kind of regular? Maybe someone has some examples.
Important: the highlighted part of ald can change (it can be adl, or anything else). So you need to somehow hook on <span> and %TEST% %TEST2%

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2019-09-14
@Cat_usual

Where do you get the $link variable from? From the air? Turn on errors in PHP and PHP itself will give you an answer, however, in English.

M
MagicMight, 2020-03-30
@MagicMight

MySQL regular expressions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question