我需要在大文本中匹配特定内容;
前要匹配:
{{Infobox....{{..}}..
...
..
..
.
}}
这里的问题:内容可能包含也可能不包含内部{{..}}. 但是,我需要匹配直到}}出现在新行中的特定闭合双卷曲 ( )。
Reg Ex 我一直在尝试:
1) String regex = "\\{\\{Infobox(.*?)\\}\\}"; //This matches till the first occurrence of }}
2) String regex = "\\{\\{Infobox(.*)\\}\\}"; //This matches till end of the file
寻找一些帮助来获取内容,直到特定的右大括号。