js中2005-05-02怎么转换为2005/5/2?
var s = "2005-05-02";
s = s.replace(/-0*/g, "/");
alert(s);
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
用正则表达式格式化html标签的代码
htmlhead/headbodystyle#x_edit{height:320px;width:540px;border:1pxsolid#666666;color:red;filter:chroma(color="#0f0f0f");background-color:#f0f0f0;font-family:verdana;font-size:11px;line-height:13px;marg
php利用正则表达式取出图片的URL
?phppreg_match('/imgssrc="(http://.+.(jpg|gif|bmp|bnp))"/i','imgsrc="http://127.0.0.1:81/upload/files/aaa.jpg"',$matches);echo$matches[1];?毕业设计要用,可惜正则不好,互补古蓝
用正则取出html页面中script段落里的内容
这个功能对于字符串中的段落分解比较有用[Ctrl+A全选注:如需引入外部Js需刷新才能执行]