gpt4 book ai didi

regex - 想要用 Notepad++ 中的正则表达式替换

转载 作者:行者123 更新时间:2023-12-02 21:44:06 32 4
gpt4 key购买 nike

我有一个文本文件,其内容类似于以下内容。我想使用 Notepad++ 的查找和替换功能删除银行申请人之间的所有文本(数字字符串)。

0004829 01-02 000421
0004830 01-02 000422
0466608 06-47 000743
Bank sl. no beginning with an 'IA' indicates ICB account
Paramount Textile Limited Page No: 143 of 258
Lottery Conducted by--Dept. of Electrical and Electronic Engineering, BUET. Date:03/10/2013
General
Applicants
0004823 01-02 000415
0004824 01-02 000416
0004826 01-02 000418
0004829 01-02 000421
0004830 01-02 000422
0004831 01-02 000423
0004832 01-02 000424
Bank sl. no beginning with a
Lottery Conducted by--Dept. of Electrical and Electronic Engineering, BUET. Date:03/10/2013
General
Applicants
0004823 01-02 000415
0004829 01-02 000421
0004830 01-02 000422
0004831 01-02 000423
0004832 01-02 000424
0004839 01-02 000431
0004840 01-02 000432
Bank sl. no beginning with an 'IA' indicates ICB account
and Electronic Engineering, BUET. Date:03/10/2013
General
Applicants
0004823 01-02 000415
0004830 01-02 000422
0004831 01-02 000423
0004832 01-02 000424
0004839 01-02 000431

我想要的输出示例如下:

0004829 01-02 000421
0004830 01-02 000422
0466608 06-47 000743
0004823 01-02 000415
0004824 01-02 000416
0004826 01-02 000418
0004829 01-02 000421
0004830 01-02 000422
0004831 01-02 000423
0004832 01-02 000424
0004823 01-02 000415
0004829 01-02 000421
0004830 01-02 000422
0004831 01-02 000423
0004832 01-02 000424
0004839 01-02 000431
0004840 01-02 000432
0004823 01-02 000415
0004830 01-02 000422
0004831 01-02 000423
0004832 01-02 000424
0004839 01-02 000431

最佳答案

将 Notepad++ 搜索并替换为正则表达式模式,然后搜索^[^0-9].*\r\n替换为您应该留空

确定。与换行符不匹配 下面的设置和输出图片 enter image description here

关于regex - 想要用 Notepad++ 中的正则表达式替换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19834569/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com