【发布时间】:2014-04-15 20:08:05
【问题描述】:
preg_match("/ [>](.*)[<] /", '<textarea width="500" >web scripting language of choice.</textarea>',$matches);
print_r ($matches);
我只想返回“选择的网络脚本语言”。形成这个字符串。 请帮我。 到达这个 PHP
【问题讨论】:
-
使用 DOM 解析器而不是正则表达式。
-
在
/分隔符后删除空格或添加 x。
标签: php regex html-parsing