Home  >  Q&A  >  body text

Can mysql be replaced with regular expressions?

<li><img src="/static/images/TB2IVW4chmJ.eBjy0FhXXbBdFXa_!!0-av-auth-doc.jpg"></li>

This is one of the contents of a field in mysql

Can it be replaced by regular expression?

<li src="/static/images/TB2IVW4chmJ.eBjy0FhXXbBdFXa_!!0-av-auth-doc.jpg"><img src="/static/images/TB2IVW4chmJ.eBjy0FhXXbBdFXa_!!0-av-auth-doc.jpg"></li>

The data of src is equal to the data of src, and the src of each piece of data is different

我想大声告诉你我想大声告诉你2712 days ago743

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-18 10:52:24

    I don’t understand why the questioner wants to save the data in the mysql database like this. Is it just the imgsrc地址赋给lisrc,这不应该是在前端页面上用jquery statement?

    reply
    0
  • Cancelreply