Run
Online Code Editor
document.write (new RegExp("a+b+c","g").toString()); document.write(new RegExp("
gt+yu").toString()); document.write(new RegExp("
abcd").toString()); document.write(new RegExp('
\\n', 'g').toString());