开发者

Using preg_replace in mysql

开发者 https://www.devze.com 2022-12-24 23:25 出处:网络
I have a CMS co开发者_StackOverflow中文版ntent in database. The content contains \'<img src= .............../>\' also.

I have a CMS co开发者_StackOverflow中文版ntent in database. The content contains '<img src= .............../>' also. I want to retrieve this content using mysql query and show on frontend but with all '<img src='.........../>' removed from the content.

How can it be done using query in mysql?


Once you install lib_mysqludf_preg you'll be able to use various regex functions in MySQL. See the docs on that page to find out more about them.

DISCLAIMER: I have not used this package and will not guarantee that it won't do anything to the server.

0

精彩评论

暂无评论...
验证码 换一张
取 消