我有以下文字:
service instance 2930 ethernet
description this is all character billing code not include tunnel id
encapsulation dot1q 2930
xconnect 1.1.1.2 333 encapsulation mpls
service instance 2931 ethernet 2931colin
description this is 2931 Billing Code for Colin
encapsulation dot1q 2931
xconnect 1.1.1.2 2931 encapsulation mpls
并且只想获取“服务实例”开始的最后一个部分......例如:
service instance 2931 ethernet 2931colin
description this is 2931 Billing Code for Colin
encapsulation dot1q 2931
xconnect 1.1.1.2 2931 encapsulation mpls
你能帮我建立正则表达式吗?在发布之前我已经花了 3 个小时找到答案:(
谢谢