我的记事本中有几行。我想找到与这些行匹配的单词模式,并且需要仅使用其他一些虚拟文本删除该单词。
输入行示例:
07-12-2020 User Logged in Started. User Info is 'domain\ID12354' Authentication successful.
07-12-2020 User Logged in Started. User Info is 'domain\ID123adad' Logged in.
07-12-2020 User Logged in Started. User Info is 'domain\ID1xzza' Logged out.
输出线
07-12-2020 User Logged in Started. User Info is 'dummydomain\xxxxxx' Authentication successful.
07-12-2020 User Logged in Started. User Info is 'dummydomain\xxxxxx' Logged in.
07-12-2020 User Logged in Started. User Info is 'dummydomain\xxxxxx' Logged out.
我们是否可以在 NOTEPAD++ 的查找和替换选项中使用常规表达式来执行此操作?
或者,我们可以使用其他 C# 应用程序来计算 RegEx,那么对于这种模式来说,正确的 RegEx 是什么?