匹配html标签中的正则表达式 [英] match regular expression in html tags

查看:232
本文介绍了匹配html标签中的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面的html源代码。然后如何使用正则表达式

I have html source code of a page. Then how to find
<input type="hiddenfield" value="dsgfdt" autocomplete="off">
from this source code using regex

推荐答案

^ []






尝试使用它可能会有效。它可能会返回比你预期更多的东西,但可以拥有你想要的其他东西。

但是为什么不使用jquery,它会更简单。


Try using this it may work.It will possiblly return more than you expect, but can have the line you want among other things.
But why dont you use jquery, it will be a lot simpler.


这篇关于匹配html标签中的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆