I have another TTP problem where I can't figure out a solution...
My data:
I cannot figure out how to extract the 10 columns if the last column in empty.
I've tried setting a default. I've tried matching on both patterns. I've tried using an ORPHRASE for the ninth column to be split later.
This is the template I have at the moment, which only matches the last line of my data:
My data:
10/0.2/0 33 49 49 48 130 0 44 5 10/0.3/0 33 39 38 38 136 1 38 0 10/0.0w 33 25 25 25 131 0 24 1 SomeTextAs you can see, there is a final column that could be blank, or could contain a description.
I cannot figure out how to extract the 10 columns if the last column in empty.
I've tried setting a default. I've tried matching on both patterns. I've tried using an ORPHRASE for the ninth column to be split later.
This is the template I have at the moment, which only matches the last line of my data:
<group name="Interface_{{ interface }}"> {{ interface }} {{ cable_mac }} {{ total }} {{ active }} {{ registered }} {{ secondary }} {{ offline }} {{ bonding }} {{ non_bonding }} {{ chan_desc }} </group>How can I extract the data, even when the last column is empty?