i need to parse both the columns using regex but i am not able to. Please advise

40 Views Asked by At
Port           Vlans in spanning tree forwarding state and not pruned
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

using this ^(\S+)\s+(\S+)$ is this right?

0

There are 0 best solutions below