Regular Expression to extract src attribute from img tag

后端 未结 7 1512
刺人心
刺人心 2020-12-14 19:46

I am trying to write a pattern for extracting the path for files found in img tags in HTML.

String string = \"

        
相关标签:
7条回答
  • 2020-12-14 20:45

    Try this expression:

    src\s*=\s*"([^"]+)"
    
    0 讨论(0)
提交回复
热议问题