给梦一个奔跑的方向!
Google
Baidu
Site
Home
Javascript
PHP
Database
Ubuntu
Gallery
Contact Me
三言两语
.NET
HTML 标签 属性匹配
User Rating:
/ 0
Poor
Best
Other
-
随记
Written by xlingfairy
Wednesday, 11 November 2009 09:11
带单引号或双引号 的属性好匹配,但是还要同时匹配不带引号的属性,确实是有点难度。
(
class|style|href
)\s*=\s*
(?
(?=["'])
((["'])([^"']*)\2)
|
([^\s>]+)
)
< Prev
Next >
Add comment
Name (required)
E-mail
Website
Notify me of follow-up comments
Refresh
Send (Ctrl+Enter)
Cancel
Popular Contents
GridView 新增,删除,修改 操作
JGrid 第三版(开发中)
JCookie
JCarousel 轮换效果
MySQL INSERT record IF NOT EXISTS
ie6 img onload
给APACHE加上URLRewrite 功能的问题
给页面 unload 加上效果
用正则替换所有URL
关于IE下严重错位的解释
AS2 + JS 实现 图片下载进度条(JImgLoader)
Google Analytics API 整理
joomla 的 JFolder 的两处修定
终于弄了个个人网站
客户网站被黑
Recommend
.NET MVC 2 多语言网站的实现
SQLServer 读取第三方数据库的数
C# 飞信登陆的几个关键函数
javascript 处理带命名空间的 xml
MailNotify 升级
汉字编码转换工具
LINQ 生成XML层级树
Mail Notify 新邮件提醒
C# 与 POP3
Google Analytics API 整理
与 Google Analytics 互动
AS2 + JS 实现 图片下载进度条(
JCarousel 轮换效果
GridView 新增,删除,修改 操作
Joomla 给自定义的 compone
给APACHE加上URLRewrite
ie6 img onload
JGrid 第三版(开发中)
给页面 unload 加上效果
MySQL INSERT record IF NOT EXISTS
JCookie
joomla 的 JFolder 的两处修定
Related Articles
正则表达式的条件分枝
正则表达式 零宽度断言
Site Info
Members
: 1
Content
: 130
Web Links
: 7
Content View Hits
: 99634
Links
Mdong·s Space
Warran的个人官方主页
卡卡帮
POP3:void(0)
阿亮的烤肉架
apoclast.org
vfresh
留下幸福的记忆
岭南艺术地图
Lin.x's Space
珍惜吧
饺子博客
林士杰