let pattern1 = /ad/g; // match字串中有ad的子字串 let pattern2 = /[bs]ad/i; // match第1個有bad或sad的子字串, 且不分大小寫 let pattern3 ...
確定! 回上一頁