match方法:
/**
@param{RegExp} regexp
@return{Array|{index:number, input:string}}
*/
String.prototype.match =function(regexp) {};
用例1:匹配hello;返回匹配值
匹配hello
用例2:不區(qū)分大小寫匹配hello似嗤。
不區(qū)分大小寫匹配hello,返回匹配后的值
用例3:不區(qū)分大小寫全局匹配丙唧,返回匹配后的結(jié)果到數(shù)組中套菜。
全局匹配