这个正则表达式怎么写
文件种有很多这种,以4个空格+port开始,以4个空格+exit结束,中间有n行字符。我用的是VS2008的tr1正则库,写了半天都是tr1异常,没成功,配置一行,比如“port 2/1/1"这种我会,但多行就没成功过。
port 2/1/1
description "uT:QDN-DYZ-NGN-BAC-1.SBC2300(local)GE2/0/0"
ethernet
mode access
encap-type dot1q
mtu 1536
no autonegotiate
exit
no shutdown
exit
[解决办法]
你想干什么都描述不清楚啊!!