-4
我有文字的身体像这里面的所有文本:的Python reg表达式删除引号
According to James, "we do not know" the source of the problem, "we are clueless".
什么样的正则表达式会删除引号内的所有文本?我已经使用应用re.sub用括号,但我不能拿出一个表情识别“S。
我有文字的身体像这里面的所有文本:的Python reg表达式删除引号
According to James, "we do not know" the source of the problem, "we are clueless".
什么样的正则表达式会删除引号内的所有文本?我已经使用应用re.sub用括号,但我不能拿出一个表情识别“S。
text = 'According to James, "we do not know" the source of the problem, "we are clueless".'
re.sub('".+?"', '', text)