摘要: 1function MatchDemo() 2{ 3var r, re; // 声明变量。 4var s = "The rain in Spain falls mainly in the plain"; 5re = /ain/ig; // 创建正则表达式模式。 6r = s.match(re); // 尝试去匹配搜索字符串。 7return(r); // 返... 阅读全文
posted @ 2007-05-18 14:48 lonelywolf 阅读(353) 评论(0) 推荐(0) 编辑