regex - 如何在 Atom 编辑器中删除每行的前 23 个字符?

标签 regex atom-editor

如何在 Atom 编辑器中删除每行的前 23 个字符?

谢谢

0,0:10:49.25,0:10:51.00This is incredible, little brother!
0,0:10:52.38,0:10:54.58I never thought it would work so well.
0,0:10:56.92,0:11:01.08Yes, it's more than\N I ever imagined, big brother.
0,0:11:02.96,0:11:06.00My goal was to become\N the strongest man in the world.
0,0:11:08.13,0:11:09.42The strongest man.
0,0:11:10.04,0:11:11.42That was my dream.
0,0:11:14.21,0:11:18.21At last, the ultimate steroid,\N "Biceps King," is complete!
0,0:11:20.13,0:11:21.88Little brother!
0,0:11:21.92,0:11:24.96Drink this and you will obtain\N the power you've been seeking!
0,0:11:26.08,0:11:28.29What? Drink that?
0,0:11:28.79,0:11:32.67Indeed! I added strawberry flavoring,\N to make it go down easier.
0,0:11:33.50,0:11:34.50Brother...
0,0:11:41.21,0:11:43.42Yes, this will do!
0,0:11:45.04,0:11:47.29My brains and your brawn!
0,0:11:47.33,0:11:50.58By combining the greatest of minds\N and the strongest of bodies,
0,0:11:50.79,0:11:55.13we brothers will conquer everything\N on earth
0,0:11:55.17,0:11:56.67and rule as kings!
0,0:12:04.04,0:12:06.08I-Incredible!

最佳答案

文字令人不安...

来自原子文档:

ctrl-x(开始录制

ctrl-x ) 停止录制

ctrl-x e 执行宏

ctrl-x ctrl-e 执行宏N次

ctrl-x b 执行宏到文件末尾

ctrl-x ctrl-b 从文件开头到结尾执行宏

来源:https://atom.io/packages/atom-keyboard-macros

使用一个转到行首的宏,删除 23 个字符,然后向下一行。然后执行到文件末尾。

另外,您可以按照 Pushpesh-kumar-rajwanshi 所说的操作,将 .*{23} 替换为空字符串。

关于regex - 如何在 Atom 编辑器中删除每行的前 23 个字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53694613/

相关文章:

go - 在go-plus atom中按项目添加gopath

atom-editor - 开发和调试 Atom 包

javascript - Atom/Nuclide 中的代码中断语法突出显示

c++ - 我是否需要 Microsoft Visual Studio/Eclipse 才能使用 opencv 等库在 C++ 中进行编码?

formatting - .liquid-file(Shopify 主题文件)的自动格式化

Python正则表达式替换部分字符串

python - 使用 REGEX 分割字符串

正则表达式验证密码

python - 为什么 re.search(r'(ab* )',' aaAaABBbbb',re.I) 在 python 中给出结果 'a' 而不是 'ABBbbb' 尽管使用了 're.I'?

javascript - 在 Javascript 中组合正则表达式