正則表達(dá)式語法大全 js中exec、test、match、search、replace、split用法?
js中exec、test、match、search、replace、split用法?Test是regexp的方法,參數(shù)是string,返回值是Boolean。Match是字符串方法,參數(shù)是正則表達(dá)式,
js中exec、test、match、search、replace、split用法?
Test是regexp的方法,參數(shù)是string,返回值是Boolean。Match是字符串方法,參數(shù)是正則表達(dá)式,返回值是數(shù)組。