views:

65

answers:

2

I have the following text:

3/1 

I want to amend it to be:

3/1 port id

Thanks

+3  A: 

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

KLee1
My example was incomplete, I have the following:3/13/23/3and so on. That is why I want to be able to add lines to the end.
rahrahruby
+1  A: 

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'"

mattmc3
Thanks, that did the trick!!
rahrahruby
Awesome. Glad to help.
mattmc3