我设法找到了以大写字母开头的单词,但找不到正则表达式来过滤掉从句子开头开始的单词。
每个句子都以句号和空格结尾。
测试字符串 = This is a Test sentence. The sentence is Supposed to Ignore the Words at the beginning of the Sentence.
期望输出 = ['Test', 'Supposed', 'Ignore', 'Words', 'Sentence']
我正在用 Python 编码。如果有人可以帮助我解决正则表达式,我会很高兴:)
慕丝7291255
相关分类