开发者

Search and append with regex in Notepad++

开发者 https://www.devze.com 2023-01-06 07:11 出处:网络
I have the following text: 3/1 I want to amend it 开发者_StackOverflowto be: 3/1 port id Can\'t you just do a search and replace for 3/1 replacing it with 3/1 port id?Find this:(\\d+\\/\\d+)

I have the following text:

3/1 

I want to amend it 开发者_StackOverflowto be:

3/1 port id


Can't you just do a search and replace for 3/1 replacing it with 3/1 port id?


Find this: (\d+\/\d+)

This means "the group of: 1 or more digits followed by a forward slash followed by 1 or more digits"

Then replace with this: \1 port id

Which means "the first group found followed by the literal text: ' port id'"

0

精彩评论

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