I am working on a project based on WPF,C# and MVVM . This is basically a custom network device via telnet. I have the following output in a wpf text box and I want to extract the column values ββof a MAC address.
active500EM#sh mac-address-table Read mac address table.... Vlan Mac Address Type Creator Ports ---- --------------------------- ------- ----------------------- 1 00-23-8b-87-9a-6b DYNAMIC Hardware Ethernet1/0/12 1 00-8c-fa-72-94-b1 DYNAMIC Hardware Ethernet1/0/1 1 3c-43-8e-5c-3e-05 DYNAMIC Hardware Ethernet1/0/8 1 d0-59-e4-b9-e9-3e DYNAMIC Hardware Ethernet1/0/8 1 f8-f7-d3-00-03-c0 DYNAMIC Hardware Ethernet1/0/8 1 f8-f7-d3-00-03-f0 STATIC System CPU active500EM
I think I can't use regex because I have nothing to match. Any help and suggestions would be very noticeable.
source share