Find (ICD9 code) and replace parentheses with |
<p>I'm using Notepad++ v6.9.2. I need to find ICD9 Codes which will take the following forms:</p>

<ul>
<li><code>(X##.)</code>, <code>(X##.#)</code> or <code>(X##.##)</code> where <code>X</code> is a letter and always at the beginning and <code>#</code> is a number</li>
<li><code>(##.)</code>, <code>(##.#)</code>, <code>(##.##)</code>, <code>(###.)</code>, <code>(###.#)</code>, <code>(###.##)</code> or <code>(###.###)</code> where <code>#</code> is a number</li>
</ul>

<p>and </p>

<p>replace the first <code>(</code> with <code>|</code> and the <code>)</code> and single space behind second with <code>|</code>.</p>

<p><strong>EXAMPLE</strong></p>

<pre><code>(305.11) TOBACCO ABUSE-CONTINUOUS
</code></pre>

<p>Becomes:</p>

<pre><code>|305.11|TOBACCO ABUSE-CONTINUOUS
</code></pre>

<p><strong>OTHER CONSIDERATIONS:</strong></p>

<p>There are other places with parentheses but will only contain letters. Those do not need to be changed. Some examples:</p>

<pre><code>UE (Major) Amputation
(282.45) THALASSEMIA (ALPHA)
(284.87) RED CELL APLASIA (W/THYMOMA)
Pain (non-headache) (338.3) Neoplasm related pain (acute) (chronic)
</code></pre>

<p>Becomes</p>

<pre><code>UE (Major) Amputation
|282.45|THALASSEMIA (ALPHA)
|284.87|RED CELL APLASIA (W/THYMOMA)
Pain (non-headache) |338.3|Neoplasm related pain (acute) (chronic)
</code></pre>