0
A
回答
1
preg_match('/(data-zoom-image=")(.*)(")/',$youstring,$match);
echo $match[2];
尝试。 这是一个pattren
1
0
无配额:
substr($text, strpos($text, '"')+1, strrpos($text, '"') - strpos($text, '"')-1) ;
0
$str = 'data-zoom-image="desired text"';
preg_match('/data-zoom-image="(?P<text>\w+)"/', $str, $matches);
print_r($matches);
相关问题
- 1. 我该如何preg_match?
- 2. PHP,我该如何使用preg_match?
- 3. preg_match应该如何调试
- 4. 我应该如何解压缩AsyncTask.doInBackground中的大数据文件?
- 5. 我该如何从Intellij中的git仓库解压文件
- 6. 如何解决警告:preg_match()
- 7. 如何解决Preg_match警告?
- 8. 我该如何压缩这个?
- 9. 我该如何压缩此声明?
- 10. 与我有困难理解的preg_match function.An如的preg_match
- 11. 解释我的preg_match如果条款请
- 12. 如何解压/解压缩* .z文件
- 13. 如何解压/解压缩文件
- 14. ValueError:解压缩太多值,我该如何解决这个问题?
- 15. 我该如何解决错误:解压缩的值太多:self .__ ordering = helpers._index_document(keys)
- 16. 我该如何解析?
- 17. 我该如何解决java.sql.BatchUpdateException?
- 18. 我该如何解组JAXB
- 19. 我该如何解决brut.androlib.AndrolibException
- 20. 我该如何解决SQL
- 21. 我该如何解决OnClickListener1
- 22. 我该如何解决
- 23. 我该如何解析HTML?
- 24. 我该如何解决'android.content.ActivityNotFoundException'?
- 25. System.Data.DataRowView我该如何解决
- 26. 我该如何解释'main()'?
- 27. 我该如何解决NullPointerException?
- 28. 我该如何解析JSON?
- 29. 我如何解压文件夹
- 30. PHP的preg_match我如何
也许你想在这里看看:HTTP: //www.php.net/manual/en/book.dom.php – biziclop 2013-02-11 08:08:54
也许http://php.net /manual/en/function.preg-match.php这可以帮助你 – ripa 2013-02-11 08:10:12