这是我的文字:
[[>
Check this out!
And also this one!
Well, I also have this
[[MyVariable>5:15]]
我想提取:
Check this out!
And also this one!
Well, I also have this
和
MyVariable
和
5:15
当它只有[[MyVariable>5:15]]
时,我可以使用此RegEx提取值:/\[\[(.*)\]\]/g
。但是,我无法获得以[[>
开头的多行版本。
我没试过\[\[\>(\s\S)\]\]
。
我如何得到我想要的东西?
(我正在使用JavaScript)