title: VIM: Regex \zs \ze problem
body: <p>I'm trying to delete all text in lines from the 2nd character till the last <code>.word\</code> pattern (deleting also the dot), but there may not be a <code>\</code> before the dot. If there is a <code>\</code> before the dot then delete till the previous <code>.word\</code> pattern.</p>
  
  <p>I created this simple regex:<br>
  <code>^\w\zs.*[^\]\.\ze\w\+\\\s.*$</code><br>
  but this doesn't work</p>
  
  <p>What did I wrong?</p>
  
  <p>What would be the code if I don't want to delete till the last <code>.word\</code> but till the 2nd <code>.word\</code> pattern?</p>
  
  <p>data:<br>
  <code>nnoremenu &lt;silent&gt; 97.330.10 &amp;Sort.Reverse\ Characters.Reverse\ Characters\ in\ Line\ Hor\ -[A]&lt;Tab&gt;sihT\ si\ ym\ txet\.\<br>
  nnoremenu &lt;silent&gt; 97.330.11 &amp;Sort.Reverse\ Characters.Reverse\ Characters\ in\ Line\ Hor\ Reverse\ -[A]&lt;Tab&gt;\.txet\ ym\ si\ sihT\</code>       </p>
  
  <p>must be:<br>
  <code>n Reverse\ Characters\ in\ Line\ Hor\ -[A]&lt;Tab&gt;sihT\ si\ ym\ txet\.\<br>
   n Reverse\ Characters\ in\ Line\ Hor\ Reverse\ -[A]&lt;Tab&gt;\.txet\ ym\ si\ sihT\</code></p>