const regex = /hello world/i // 使用test 比對字串是否符合pattern,回傳boolean ... 表示出現0 或1 次,等同於{0,1} const regex = /\w?/
確定! 回上一頁