googlesheets查找并替换regex
我似乎无法让regexp在我的Google工作表中的查找和替换框中工作。我正在尝试删除任何单元格中的所有googlesheets查找并替换regex,regex,google-sheets,Regex,Google Sheets,我似乎无法让regexp在我的Google工作表中的查找和替换框中工作。我正在尝试删除任何单元格中的所有-字符。细胞通常是这样的 -something -some other stuff -more things that-are-here 所以我希望它能像这样结束 something some other stuff more things that-are-here 我甚至不知道这个regexp是否正确支持RE2 据推测,这应该匹配所有-字符,并支持多行。但事实并非如此。它只删除每
-
字符。细胞通常是这样的
-something
-some other stuff
-more things that-are-here
所以我希望它能像这样结束
something
some other stuff
more things that-are-here
我甚至不知道这个regexp是否正确支持RE2
据推测,这应该匹配所有-
字符,并支持多行。但事实并非如此。它只删除每个单元格中的第一个-
。您可以尝试
(?<=\n|^)-
(?你可以试试
(?<=\n|^)-
(?您可以尝试查找:“(\n | ^)-”替换为:“$1”。您可以尝试查找:“(\n | ^)-”替换为:“$1”。