title: Regex Find and Move
body: <p>I hope you wouldn't mind answering a question about regular expressions:
  I want to do a FIND and MOVE from one place to another within the same file. This will apply to hundreds of files at once.
  Example FIND from the text below: <code>Cat1[changing text]Cat2</code> and MOVE after <code>Dog1[changing text]Dog2</code></p>
  
  <p>Original file:</p>
  
  <pre><code>Cat1[variable text]Cat2 [variable text]
  Dog1[variable text]Dog2 [variable text]
  Cow1[variable text]Cow2 [variable text]
  </code></pre>
  
  <p>Desired result:</p>
  
  <pre><code>  [variable text]
  Dog1[variable text]Dog2Cat1[variable text]Cat2  [variable text]
  Cow1[variable text]Cow2  [variable text]
  </code></pre>
  
  <p>In other words, I'm trying to move the everything with comes between Cat1 and Cat2 to a different location within the same file. The new location in this case is immediately after Dog1...Dog2. Is there a regex which allows for that? Thank you so much.</p>