title: Is there a way to Continue with the same line in State changes in TextFSM?
body: <p>I know that I can't combine state transitions with a continue statement.</p>
  <p>I'm trying to parse network configuration with ansible where the only clear end of row its the beginning of the next one.</p>
  <p>For example I want to parse configs like follows:</p>
  <pre><code>line vty 0 4
   exec-timeout 30 0
   authorization exec MIRADIUS
   accounting connection MIRADIUS
   accounting exec MIRADIUS
   login authentication MIRADIUS
  line vty 5 16
   access-class 95 in vrf-also
   exec-timeout 30 0
   authorization exec MIRADIUS
   accounting connection MIRADIUS
   accounting exec MIRADIUS
   login authentication MIRADIUS
   history size 25
   transport input ssh
  line vty 15 116
   access-class 95 in
   exec-timeout 30 0
   authorization exec MIRADIUS
   accounting connection MIRADIUS
   accounting exec MIRADIUS
   login authentication MIRADIUS
   history size 25
  </code></pre>
  <p>Template I'm using:</p>
  <pre><code>Value Required LINE (\d+\s+\d+)
  Value vtyAcl (\d+|\w+)
  Value aclDir (\w+)
  Value vrfAlso (\w+-\w+)
  
  Start
    ^\s+access-class\s+${vtyAcl}\s+${aclDir}\s+${vrfAlso}.*$$
    ^\s+access-class\s+${vtyAcl}\s+${aclDir}.*$$
    ^line vty ${LINE}.*$$ -&gt; Continue.Record
  </code></pre>
  <p>So the only certain way I have to know I'm done with the <strong>vty 0 4</strong> for example is that the <strong>vty 5 16</strong> starts.</p>
  <p>so, it is possible to keep continue with the line in order to save the new vty?
  Currently my template is saving the config of previous row in the nextone. I have no way to know the which will be the lasts lines possibilities.</p>
  <pre><code>Current result:
  [
      {
          &quot;LINE&quot;: &quot;0 4&quot;,
          &quot;aclDir&quot;: &quot;&quot;,
          &quot;vrfAlso&quot;: &quot;&quot;,
          &quot;vtyAcl&quot;: &quot;&quot;
      },
      {
          &quot;LINE&quot;: &quot;5 16&quot;,
          &quot;aclDir&quot;: &quot;&quot;,
          &quot;vrfAlso&quot;: &quot;&quot;,
          &quot;vtyAcl&quot;: &quot;&quot;
      },
      {
          &quot;LINE&quot;: &quot;15 116&quot;,
          &quot;aclDir&quot;: &quot;in&quot;,
          &quot;vrfAlso&quot;: &quot;vrf-also&quot;,
          &quot;vtyAcl&quot;: &quot;95&quot;
      }
  ]
  
  Desired Result:
  [
      {
          &quot;LINE&quot;: &quot;0 4&quot;,
          &quot;aclDir&quot;: &quot;&quot;,
          &quot;vrfAlso&quot;: &quot;&quot;,
          &quot;vtyAcl&quot;: &quot;&quot;
      },
      {
          &quot;LINE&quot;: &quot;5 16&quot;,
          &quot;aclDir&quot;: &quot;in&quot;,
          &quot;vrfAlso&quot;: &quot;vrf-also&quot;,
          &quot;vtyAcl&quot;: &quot;95&quot;
      },
      {
          &quot;LINE&quot;: &quot;15 116&quot;,
          &quot;aclDir&quot;: &quot;in&quot;,
          &quot;vrfAlso&quot;: &quot;&quot;,
          &quot;vtyAcl&quot;: &quot;95&quot;
      }
  ]
  
  </code></pre>
  <p><strong>UPDATE</strong>: Here the update with solution for this particular issue. Thanks.</p>
  <pre><code>Value Required LINE (\d+\s+\d+)
  Value vtyAcl (\d+|\w+)
  Value aclDir (\w+)
  Value vrfAlso (\w+-\w+)
  
  Start
    ^line vty -&gt; Continue.Record
    ^\s+access-class\s+${vtyAcl}\s+${aclDir}\s+${vrfAlso}.*$$
    ^\s+access-class\s+${vtyAcl}\s+${aclDir}.*$$
    ^line vty ${LINE}.*$$ 
  </code></pre>