Example. Search a string for the character "e": var str = "The best things in life are free"; var patt = new RegExp("e"); var res = patt.test(str);.
確定! 回上一頁