Help for this page

Select Code to Download


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