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'"
精彩评论