这是我的文字:如何使用RegEx从其他文本中提取包含文本的多行和空白空间?
[[>
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)
'\ [[[[] [\ s \ S] *?\] \]' – revo