\W 匹配一個不可以組成單詞的字元,如[\W]匹配”$5.98″中的$,等於[^a-zA-Z0-9]。 用re = new RegExp(“pattern”,[“flags”]) 的方式比較好 pattern : 正規 ...
確定! 回上一頁