title: Regex replace escape character
body: <p>I am trying to build a regex which replaces my escape character. My escape character is a backslash (\). For example:</p>
  
  <pre><code>lastname[ct]sam\\\,ple
  </code></pre>
  
  <p>Should get:</p>
  
  <pre><code>lastname[ct]sam\,ple
  </code></pre>
  
  <p>First i tried it with this:</p>
  
  <pre><code>([\\]{1})(.?)
  </code></pre>
  
  <p>Which matched the correct groups ("\\" and "\,"). Then i tried to just get the backslash with positive lookahead but it didn´t really work out:</p>
  
  <pre><code>(?=([\\]{1}[^\\]{1}))(.?)
  </code></pre>
  
  <p>It just matched the backslash before the comma and not the backslash before the backslash. Anybody an idea where my mistake is? </p>