title: How to swap two if and then statements
body: <p>I have some code to reform (1000 lines) and I want to go from this</p>
  <pre><code>if $one=0 and $two=32 then $dist=1
  if $one=0 and $two=15 then $dist=2
  if $one=0 and $two=19 then $dist=3
  </code></pre>
  <p>To this</p>
  <pre><code>if $one=0 and $dist=1 then $two=32
  if $one=0 and $dist=2 then $two=15
  if $one=0 and $dist=3 then $two=19
  </code></pre>
  <p>In a few words swap both $two and its value with $dist and its value.</p>
  <p>Can it happen with regular expressions of notepad+?</p>
  <p>I tried:</p>
  <pre><code>if ([^ ]+) and ([^]+) then ([^]+)
  </code></pre>