我的多个字符串如下所示
###
some content
that I need to match
and might have some special character in it such as | <> []
###
我正在尝试获取哈希之间的内容。我在正则表达式下尝试过,但它与它不匹配并返回 null。
var regex = /### ((.|\n)*) ###/;
var match= regex.exec(aboveContentAsString);
console.log(match[1]);