我的正则表达式遇到了一些问题.我想匹配方括号标签内的所有内容.
这是我的正则表达式: /(?:\[.*])(.*)(?:\[\/.*])/
我正在针对这个内容运行它:
[TITLE]More Things[/TITLE]
[BODY]This is not working
still not working
nope, hasn't magically started working
I'd like to match double carriage returns[/BODY]
Run Code Online (Sandbox Code Playgroud)
它目前只匹配单行标签.任何帮助表示赞赏,谢谢.