【发布时间】:2017-12-11 01:35:49
【问题描述】:
我正在尝试使用正则表达式来提取包含单词“R&D”的句子。 我的代码是
**\s[^.?!]*R&D[^.?!]*[?.!]**
我希望得到The third quarter R&D spending was 2.4 million, up approximately 100,000 from Q2 levels. SG&A expenses were 3.4 million, down 200,000 from Q2.
我收到了The third quarter R&D spending was 2.
【问题讨论】:
标签: python regex string findall