嗨,我希望正则表达式在大字符串中找到一个或多个子字符串匹配某些条件,例如。
"I have done my best to document all the [switches] and characters that I can locate.Regular expressions [allow] you to group like [parts] of the substring into"
结果应该像这些子字符串
switches,allow,parts
在这种情况下
"I have done my best to document all the [switches] and character.
结果应该是唯一的“开关”
提前致谢。