我需要使用正则表达式解析两列,但我做不到。请指教

问题描述 投票:0回答:0

处于生成树转发状态且未被剪枝的端口Vlan Gi1/0/1 2,6,21,25,99,195,197,505,605 Gi1/0/6 2,21,25 Gi1/0/7 2,21,25 Gi2/0/1 2,6,21,25,99,195,197,505,605 Gi2/0/6 2,21,25

使用这个 ^(\S+)\s+(\S+)$ 是这样吗?

regex regex-group regex-lookarounds regexp-replace regex-greedy
© www.soinside.com 2019 - 2024. All rights reserved.