摘要: 匹配首尾空格的正则表达式:(^/s*)|(/s*$)String.prototype.trim = function(){ return this.replace(/(^/s*)|(/s*$)/g, );}利用正则表达式分解和转换IP地址:下面是利用正则表达式匹配IP地址,并将IP地址转换成对应数值... 阅读全文
posted @ 2015-08-20 17:14 Vincent Zee 阅读(1830) 评论(0) 推荐(0) 编辑