<p>所以,我有一个文本字符串,我想从中删除“”。你知道吗</p>
<p><strong>这是我的文本字符串:</strong></p>
<pre><code>string= 'Sample this is a string text with "ut" '
</code></pre>
<p><strong>下面是我使用regex表达式想要的输出:</strong></p>
<pre><code>string= 'Sample this is a string text with ut'
</code></pre>
<p><strong>这是我的总体代码:</strong></p>
<pre><code>import re
string= 'Sample this is a string text with "ut" '
re.sub('" "', '', string)
</code></pre>
<p>输出只显示字符串中的精确文本,没有任何更改。有什么建议吗?你知道吗</p>