简体   繁体   中英

Remove everything inside <> characters in MySql

I have a massive column value that will have multiple html code, example:

</></>some wording</></></>some other stuff</></>

I want to query this but only search inside the "some wording" or "some other stuff" (Ignoring everything that is inside the brackets</>).

Any Idea how can I do this in MySql?

Fixed using the suggested reg repl in the first Comment:

REGEXP_REPLACE('the massive html code with bunch of tags','<.+?>', '')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM