console.log(RegExp("\\\nfo\n[\n]o\\bbb")); console.log(RegExp("\n")); console.log(RegExp("\\n")); console.log(RegExp("\\\n")); console.log(RegExp("\\\\n")); console.log(RegExp("\\\\\n")); console.log(RegExp("\\\\\\n")); console.log(RegExp("\\\\\\\n")); console.log(RegExp("\r")); console.log(RegExp("\u2028")); console.log(RegExp("\u2029")); console.log(RegExp("\n\r\u2028\u2029"));