Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex记事本++;查找&;替换第二组字符_Regex_Notepad++ - Fatal编程技术网

Regex记事本++;查找&;替换第二组字符

Regex记事本++;查找&;替换第二组字符,regex,notepad++,Regex,Notepad++,我有一行像这样的文字 CK \t Segamat \t Johor \t 999 假设\t是一个选项卡,如何用空格替换第二个\t 到目前为止,我可以找到带有3个\t=^(.*?\t.*?(.*?\t.*?)\t的行,在“查找”字段中查找并捕获选项卡之间的内容: ^(.*?)\t(.*?)\t(.*?)\t(.*?)$ 然后在替换为字段中,使用要替换的空格替换捕获的组之间的选项卡: \1\t\2 \3\t\4

我有一行像这样的文字

CK \t Segamat \t Johor \t 999
假设
\t
是一个选项卡,如何用空格替换第二个
\t


到目前为止,我可以找到带有3个
\t
=
^(.*?\t.*?(.*?\t.*?)\t
的行,在“查找”字段中查找并捕获选项卡之间的内容:

^(.*?)\t(.*?)\t(.*?)\t(.*?)$
然后在替换为字段中,使用要替换的空格替换捕获的组之间的选项卡:

\1\t\2 \3\t\4