开发者

Modify expression in notepad++

开发者 https://www.devze.com 2023-02-22 06:49 出处:网络
I have a file so that each line is like this: A|B How can I change it using a regex so that I can have this as final res开发者_开发技巧ult:

I have a file so that each line is like this:

A|B

How can I change it using a regex so that I can have this as final res开发者_开发技巧ult:

A|1|||B|||

Example: 1ARC00138|34 results in 1ARC00138|1|||34|||


Find:

(.+)\|(.+)

Replace with:

\1|1|||\2|||


This replacement regex:

s/^(.*)\|(.*)$/\1|1|||\2|||/
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号