![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tips
shen_gx
这个作者很懒,什么都没留下…
展开
-
正则表达式之全部符号解释
字符 描述原创 2006-04-12 12:34:00 · 673 阅读 · 0 评论 -
常用的 js 匹配正则表达式和实例
匹配中文字符的正则表达式: [/u4e00-/u9fa5] 匹配双字节字符(包括汉字在内):[^/x00-/xff] 应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1) String.prototype.len=function(){return this.replace([^/x00-/xff]/g,"aa").length;} 匹配空行的正则表达式:/n[/s| ]*转载 2006-11-02 09:08:00 · 2339 阅读 · 0 评论