存档

作者存档

正则零宽断言之双单标签混合解析

2010年1月8日 eays 没有评论

断言用来声明一个应该为真的事实。正则表达式中只有当断言为真时才会继续进行匹配。

正则表达式内容:
\{Tag:([a-zA-z0-9]*)\s([^}\/]*)\}(((?!\{\/Tag:)[\s\S])*?)\{/Tag:([a-zA-z0-9]*)\}

匹配字符串1:
{Tag:test param=”1″}test{/Tag:test}

和字符串2:
{Tag:test param=”1″}{Tag:test2 param=”2″/}{/Tag:test}

匹配字符串1非常简单,字符串2相对困难些,思考了一下午,看来只有零宽断言能解决,一时没体会到零宽断言的意思。

正则零宽断言部份:(((?!\{\/Tag:)[\s\S])*?)

中文说明::(((?!排除的字符)匹配所有表达式)无限次但尽可能少重复)

?!    是 负向零宽先行断言标志,(((?!\{\/Tag:)[\s\S])*?) 的意思是 断言匹配内容为{/Tag:外的所有内容,后跟\s\S括号*表示当断言为真时匹配所有内容。

分类: Java, JavaScript, PHP 标签:

解决Realtek ALC662在WIN7下的噪音问题

2010年1月3日 eays 没有评论

搞了两天都没解决Realtek ALC662的噪音问题,很郁闷。

今天终于找了个比较老的驱动解决了,噪音没了,很爽

realtek_hdaudio_222_vista.zip
文件大小:33.64MB
URL:ftp://file12.mydrivers.com/sound/realtek_hdaudio_222_vista.zip

分类: 未分类 标签:

3D电影播放软件Stereoscopic Player和注册码

2010年1月1日 eays 没有评论

Stereoscopic Player 1.5.3下载地址:

http://www.3dtv.at/Downloads/StereoscopicPlayer153_en.msi

注册码:

姓名(Name):3ddown.com
组织(Organization):3ddown.com
序列号(Serial):AG3A5-Z1TS1-2VZSZ-DG56E-OK336

分类: 未分类 标签:

wordpress整合wp mail smtp插件

2009年12月23日 eays 没有评论

先下载:http://www.callum-macdonald.com/download/wp-mail-smtp.zip

通过FTP上传到/wp-content/plugins下面,然后进入wordpress后台:

1.插件->启用wp mail smtp

2.设置->mail->填写SMTP信息,如:

From Email: You can specify the email address that emails should be sent from. If you leave this blank, the admin email will be used.
From Name: You can specify the name that emails should be sent from. If you leave this blank, the emails will be sent from WordPress.

Mailer

Mailer:

SMTP OptionsThese options only apply if you have chosen to send mail by SMTP above.

SMTP Host:
Authentication:

If this is set to no, the values below are ignored.

Username:
密码:

分类: PHP 标签: