needs to find \t in the middle of a string
<p>I have a json file with two variables:</p>

<pre><code>\t\t"ROW_ID" : 475895,

\t\t"TEXT" : "TITLE:\tCardiology Consult\n\t24 Hour Events:\n\tPatient without any further...
</code></pre>

<p>I need to find the tabs (<code>\t</code>) in the middle of <code>TEXT</code> (because I cannot load this into python correctly), not the ones at the beginning of the lines, so I can remove them. I am having trouble because there are two tabs at the beginning of the lines, so <code>.\t</code> does not work. Using notepad++. Any ideas?</p>

<p>Simple. With a negative lookbehind, you can make sure you're not unnecessarily removing the tabs that come right after newlines.</p>

<pre><code>(?&lt;!\n)\t+
</code></pre>

<p>If you're worried that <code>\n</code> will match the character <code>n</code> instead of a newline on some regex engines, use <code>\x0A</code> instead.</p>

<pre><code>(?&lt;!\x0A)\t+
</code></pre>

python json regex