Regex 查找/替换字符+;线路馈电

Regex 查找/替换字符+;线路馈电,regex,notepad++,Regex,Notepad++,如何使用正则表达式搜索字符+换行符 例如,要扭转这种局面: line one line two line (three) line four line five 为此: line one line two line (three)=line four line five e、 g.要搜索)和\n并仅在包含)的行中用其他内容替换\n。搜索\)\r?\n,替换为\)= 当将特殊正则表达式字符(如括号)用作模式的文字部分时,需要对其进行转义。以下是一篇关于这方面的好文章:

如何使用正则表达式搜索字符+换行符

例如,要扭转这种局面:

line one
line two
line (three)
line four
line five
为此:

line one
line two
line (three)=line four
line five
e、 g.要搜索
\n
并仅在包含
的行中用其他内容替换
\n

搜索
\)\r?\n
,替换为
\)=

当将特殊正则表达式字符(如括号)用作模式的文字部分时,需要对其进行转义。以下是一篇关于这方面的好文章: