Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex从该HTML获取“客户配置”_Html_Regex - Fatal编程技术网

Regex从该HTML获取“客户配置”

Regex从该HTML获取“客户配置”,html,regex,Html,Regex,我有这个HTML,但在我的实际正则表达式中,我不能只得到最后一次出现的Configuración de clientes。我该怎么做 正则表达式* 您不应该通过regex解析完整的html页面-html超出了regex的处理能力。改用xml/xhtml解析器 对于小片段,regex可以工作: 这个。will match>也一样-这就是为什么你的比赛如此之大。相反,你可以使用 ">([^>]*?)<\/a> 我不明白你想做什么。你想抓住链接的所有镜头吗?我只想抓住客户配置

我有这个HTML,但在我的实际正则表达式中,我不能只得到最后一次出现的Configuración de clientes。我该怎么做

正则表达式*


您不应该通过regex解析完整的html页面-html超出了regex的处理能力。改用xml/xhtml解析器

对于小片段,regex可以工作:

这个。will match>也一样-这就是为什么你的比赛如此之大。相反,你可以使用

">([^>]*?)<\/a>

我不明白你想做什么。你想抓住链接的所有镜头吗?我只想抓住客户配置的部分,但我的正则表达式有各种巧合。
">([^>]*?)<\/a>
"         literal
>         literal
(         start of grouping  
 [^>]*?      as few as possible characters that are not a literal >
)         end of grouping