Excel 如何用简单的方法对齐文本?
我有一个包含数千行的Excel 如何用简单的方法对齐文本?,excel,notepad++,Excel,Notepad++,我有一个包含数千行的CSV文件。每行由分号(;)分隔,以字符开头。例如: <--;2016;computer printer scaner; Computer hardwares;--> <--;2015;computer printer scaner;Computer hardwares;--> <--;2014;computer printer scaner;Computer hardwares;--> <--;2016;computer pri
CSV
文件。每行由分号(;)分隔,以字符开头。例如:
<--;2016;computer printer scaner;
Computer hardwares;-->
<--;2015;computer printer
scaner;Computer hardwares;-->
<--;2014;computer
printer
scaner;Computer hardwares;-->
<--;2016;computer printer scaner;Computer hardwares;-->
<--;2015;computer printer scaner;Computer hardwares;-->
<--;2014;computer printer scaner;Computer hardwares;-->
我想编辑它,使其看起来像这样:
<--;2016;computer printer scaner;
Computer hardwares;-->
<--;2015;computer printer
scaner;Computer hardwares;-->
<--;2014;computer
printer
scaner;Computer hardwares;-->
<--;2016;computer printer scaner;Computer hardwares;-->
<--;2015;computer printer scaner;Computer hardwares;-->
<--;2014;computer printer scaner;Computer hardwares;-->
通常我手动一行接一行,多达数千行。
非常感谢您在记事本中使用++
去寻找并替换。
查找\r和\n的所有实例并替换为零(确保搜索模式设置为扩展)
查找-->并替换为-->\n
这应该显示为您的示例它可以在一次过程中完成,使用
这将替换所有不在字符串后面的换行符-->
- Ctrl+H
- 查找内容:
(?)\R
- 替换为:
EMPTY
- 全部替换
说明:
(?<!-->) : negative lookbehind, make sure we don't have "-->"
\R : any kind of line break
<--;2016;computer printer scaner;Computer hardwares;-->
<--;2015;computer printerscaner;Computer hardwares;-->
<--;2014;computer printerscaner;Computer hardwares;-->
(?):负回溯,确保我们没有“->”
\R:有什么断线吗
给定示例的结果:
(?<!-->) : negative lookbehind, make sure we don't have "-->"
\R : any kind of line break
<--;2016;computer printer scaner;Computer hardwares;-->
<--;2015;computer printerscaner;Computer hardwares;-->
<--;2014;computer printerscaner;Computer hardwares;-->