如何在notepad++中基于正则表达式删除内容[重复]

问题描述 投票:0回答:1

我需要根据regx替换/删除文本文件中的内容。我想知道我是否可以在记事本++中执行此操作。

下面是文件内容,我需要删除文件每一行中

*soa_
之后的所有内容。

_modifycustomerdetails!1.0*soa_9d8e3a58-3d01-40e7-aab7-10c743c78516
_modifycustomerdetails!1.0*soa_8e2301e5-6b8e-496c-bc5d-38234c017cb8

如何更新内容?

regex notepad++
1个回答
1
投票

你可以使用

\*.*\b or  \*.*\ // both cases worked by me

作为替换中 FindWhat 中的模式和

empty space in 

替换为

© www.soinside.com 2019 - 2024. All rights reserved.