Answers for "javascript new Regexp with flag"

3

javascript new Regexp with flag

new RegExp(/ab+c/, 'i') // literal notation
new RegExp('ab+c', 'i') // constructor

const pattern='some pattern';
new RegExp(pattern)
Posted by: Guest on April-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language