ES6 RegExp match() ES6 RegExp test() Node.js path 模块 ES6 RegExp match() var str = 'Welcome to ES6.We are learning ES6'; var re = new RegExp("We"); var found = str.match(re); console.log(found); ES6 RegExp test() Node.js path 模块