regex match for string with \\'
<p>I need to match the rest of the strings in a file. I can match the following:</p>

<pre><code>(2, \\'username\\', 
</code></pre>

<p>with</p>

<pre><code>^\(\d+,\s\\{2}\'(\w+)\\{2}\',
</code></pre>

<p>and yield <code>username</code> in my capture group. However, I have been unable to extend that regex to capture </p>

<pre><code>(2, \\'username\\', \\'pas$word\\', 2, \\'Name\\', \\'Name\\', \\'me@example.biz\\', NULL, NULL, NULL, 0, TRUE, 9, FALSE),
</code></pre>

<p>I tried the optimistic </p>

<pre><code>^\(\d+,\s\\{2}\'(\w+)\\{2}\',.*
</code></pre>

<p>and thinking it something to do with the additional <code>\\'</code>, I even tried </p>

<pre><code>^\(\d+,\s\\{2}\'(\w+)\\{2}\', [\w\d\s\\,)@.$']*\),
</code></pre>

<p>but I can't even get these to match on </p>

<pre><code>(2, \\'username\\', 'pas$word', 2, 'Name', 'Name', 'me@example.biz', NULL, NULL, NULL, 0, TRUE, 9, FALSE),
</code></pre>

<p>so clearly, I'm missing what's right in front of me.</p>