Replace BBEdit GREP查找替换

Replace BBEdit GREP查找替换,replace,find,line,bbedit,Replace,Find,Line,Bbedit,我正在BBEdit中使用制表符分隔的文件。该文件如下所示: 00:15:50;11 text1 text2 00:35:17;03 text4 text5 00:35:20;03 text6 00:35:20;22 text7 00:15:50;11 00:35:17;03 text1 text2 00:35:17;03 00:35:20;03 text4 text5 00:35:20;

我正在BBEdit中使用制表符分隔的文件。该文件如下所示:

00:15:50;11     text1     text2
00:35:17;03     text4     text5
00:35:20;03     text6   
00:35:20;22     text7   
00:15:50;11     00:35:17;03     text1     text2
00:35:17;03     00:35:20;03     text4     text5
00:35:20;03     00:35:20;22     text6
00:35:20;22     text7
00:15:50;11     00:35:17;03     text1     text2
00:35:17;03     text4     text5
00:35:20;03     00:35:20;22     text6
00:35:20;22     text7   
基本上,它有: 时间代码选项卡文本选项卡文本等

我想把时间码的第二行加在第一行之后。我希望它看起来像这样:

00:15:50;11     text1     text2
00:35:17;03     text4     text5
00:35:20;03     text6   
00:35:20;22     text7   
00:15:50;11     00:35:17;03     text1     text2
00:35:17;03     00:35:20;03     text4     text5
00:35:20;03     00:35:20;22     text6
00:35:20;22     text7
00:15:50;11     00:35:17;03     text1     text2
00:35:17;03     text4     text5
00:35:20;03     00:35:20;22     text6
00:35:20;22     text7   
我尝试过使用这段GREP代码:

查找:

替换:

'\1\t\3\2\r\3'
我的问题是,它只搜索和替换每隔一行。如果执行“查找/全部替换”,则如下所示:

00:15:50;11     text1     text2
00:35:17;03     text4     text5
00:35:20;03     text6   
00:35:20;22     text7   
00:15:50;11     00:35:17;03     text1     text2
00:35:17;03     00:35:20;03     text4     text5
00:35:20;03     00:35:20;22     text6
00:35:20;22     text7
00:15:50;11     00:35:17;03     text1     text2
00:35:17;03     text4     text5
00:35:20;03     00:35:20;22     text6
00:35:20;22     text7   
它每隔一行就跳过一行。我想搜索/替换几百个文件中的所有文件。我想知道是否有什么东西我可以改变,以确保它得到每一行


谢谢。

我拿了你的正则表达式,稍微修改了一下

诀窍是不匹配行首的时间码。所以,使用

(?