找到并替换字符串notepad ++的模式

时间:2015-11-10 11:06:42

标签: regex

我在notepad ++中有如下行

"00Xm0000000QtMZEA0","Account_Approval_Compliance_AD_Team04t20000000M1F1","Account Approval Compliance AD Team","00lm0000000DreXAAS","ADSS_Main_Folder_London"

我想删除仅以04t开头的字符串, 例如,上面的行应该更改为

"00Xm0000000QtMZEA0","Account_Approval_Compliance_AD_Team","Account Approval Compliance AD Team","00lm0000000DreXAAS","ADSS_Main_Folder_London"

2 个答案:

答案 0 :(得分:2)

我对notepad++一无所知,但如果你正在为这场比赛寻找正则表达式,那就是:

04t.*\b

答案 1 :(得分:1)

你可以试试这个: 找到什么:(.*)(?=04t)(.*?\")(.*) 替换为:$1\"$3