摘要: reg=/^\s+$/g reg.test(str) 匹配数字字母下划线: /^\w+$/g 例子: text = Regex.Replace(text, "[\\s]{2,}", " ");//two or more spaces text = Regex.Replace(text, "()+|()", "\n");//回车 text = Regex.Replace(text,... 阅读全文
posted @ 2007-06-27 16:17 Microbar 阅读(189) 评论(0) 推荐(0) 编辑