I'm trying to remove the following string/line in my SQL database:
<p><span style="font-size:16px"><strong>The quick brown </strong></span><strong><span style="font-size:16px">fox jumps.</span></strong></p>
- String will always start with
<p>and end with</p> - String will always contain these words, in the same order:
The,quick,brown. But they might be separated by something else (space, or other HTML tags) - String is part of field with more text, nested HTML tags, so the solution must ignore higher level
<p></p>tags. - We are talking about +20k matches, no manual edits solutions please :)
I have already tried doing it with RegExp but I can't filter for multiple keywords (AND operator).
I can export my DB to a sql file so I can use any solution you would recommend, Windows/Linux, text editor, js script etc. but I would appreciate the simplest and elegant solution.
The,quickandbrownalways in same order? Do you want to remove the record, or just delete that text from the text of the field?/<p.+The.+quick.+brown.+\/p>/;But since there are nested html tags, this will capture highest level<p></p>thus removing more than necessary.