- or download this
Sample Text I Currently Parse:
untagged Interface GigabitEthernet 1/2
untagged Interface GigabitEthernet 10/2
- or download this
Code I use today:
...
$port = $2;
...Misc Code...
}
- or download this
Sample New Text to Parse:
untagged Interface GigabitEthernet 1/2,1/3-5,1/12,1/40
- or download this
Output I need to make:
...
untagged Interface GigabitEthernet 1/5
untagged Interface GigabitEthernet 1/12
untagged Interface GigabitEthernet 1/40