Answer the question
In order to leave comments, you need to log in
How to change the regular expression?
There is a regular expression.
It will remove tags and their attributes. How to correct it correctly so that it does not delete, let's say the title = "Test" tag has it? '#</?'.$tag.'[^>]*>'
Answer the question
In order to leave comments, you need to log in
You have a problem. You decide to use regular expressions to solve it.
Now you have two problems.
- Doctor, when I do this, it hurts...
- Don't do this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question