string text = "try your {{equal|even out|regularize} out|steady|tied|equal}";
实际上,我想将外括号 ( {}
) 内的所有单词分开。
例如,如果这是字符串:"{{equal|even out|regularize} out|steady|tied|equal}"
,我希望拆分结果数组是这样的: { equal, even out, regularize, out, stable,tie, equal }
string text = "try your {{equal|even out|regularize} out|steady|tied|equal} {champion|finest|top-quality}";
string1 = "try";
string2 = "your";
string3="{{equal|even out|regularize} out|steady|tied|equal}";
string4="{champion|finest|top-quality}";
如何分裂这样...请帮助我...谢谢!