I have been struggling to capture a part of an snmp response.
Text
IF-MIB::ifDescr.1 = 1/1/g1, Office to DMZ Regex
(?P<ifDescr>(?<=ifDescr.\d = ).*) Current Capture
1/1/g1, Office to DMZ
How to capture only?
1/1/g1
Office to DMZ
https://stackoverflow.com/questions/66881097/regex-capture-parts-of-line March 31, 2021 at 11:06AM
没有评论:
发表评论