doupafu6980 2016-10-10 16:13
浏览 27

需要一些想法,使用php [动态数据]从textarea post值获取第一个图像路径?

Need some idea to get first image path from textarea post value using php [dynamic data] ?

When press submit button i will get data like this from $_POST['textbox'] so i want to get some idea to get first image path from this value.

I tried to thinking for many hours. but i can not do that , how can i do ?

<p>
<span style="background-color:" rgb(206,0,0);>Hello</span>
 <span style="text-decoration:" underline;">World</span>
 <img src="https://www.google.co.th/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" style="width: 544px;">
 <span style="font-style:italic;">Hello</span>
 <span style="font-weight: bold;">World<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/DuncanEdwards1.jpg/100px-DuncanEdwards1.jpg" style="width: 100px;"></span>
<br></p>
  • 写回答

2条回答 默认 最新

  • duanfangbunao36970 2016-10-10 16:17
    关注

    Without knowing information about how the HTML will be formed, my first thought is to use RegEx to take the first quoted value found after <img

    评论

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改