title: Notepad++ Regex to insert random letter or number every other character-position
body: <p>I'm hoping to figure out a simple search and replace in Notepad++ to slightly obfuscate text by littering it with random letters and numbers every second ("other") character, and then be able to reverse that again with another macro.</p>
  
  <p>So:</p>
  
  <pre><code>banana
  </code></pre>
  
  <p>would become:</p>
  
  <pre><code>bma0ndaNn4aR
  </code></pre>
  
  <p>(b?a?n?a?n?a?)</p>
  
  <p>...And then be able to undo this again by removing every other character with a backspace.</p>
  
  <p>...</p>
  
  <p>I found this method so far:</p>
  
  <pre><code>(?&lt;=.)(?!$)
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/27614255/how-to-insert-spaces-between-characters-using-regex">How to insert spaces between characters using Regex?</a></p>
  
  <p>But as best I understand, this is not actually <strong>capturing</strong> anything so I can't use this to replace with expressions I've found for printing random letters and numbers, such as:</p>
  
  <pre><code>^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])$
  </code></pre>
  
  <p>I'm sure a tweak to that would work and then I could reverse it all by replacing the same search with <code>\b</code>.</p>