删除从特定字符开始直到结束的文本

Delete text starting on a specific character until the end

我正在使用 Google 表格,我有超过 100 000 行的数据集,在一个特定的列 (F) 中,我想删除从美元符号开始到结尾的所有文本。我该怎么做?

例如,

:
2.182.398
:
.34M 

应该变成

:
2.182.398
:

不确定 google sheet 是否像 excel 一样工作。但如果可能,您可以尝试文本到列。使用“$”作为分隔符。另一种方法是在 Google 应用程序脚本中使用带有正则表达式的替换函数。

CTRL + H

输入:

($\d.+)

并点击 全部替换