const regex = /hello world/i // 使用test 比對字串是否符合pattern,回傳boolean regex.test('Hello World !!') // true // 使用exec 取得比對的 ...
確定! 回上一頁