title: Combine two Regular Expresiions
body: <p>I already Have an Regex like below which matches the below given values.</p>
  
  <pre><code>^(.*)\s+PER\s+(.*?)(?:\sIn\s*(.+?))?(?:\s*DEAD.*)?$**
  </code></pre>
  
  <ol>
  <li><strong>5</strong> PER <strong>Sample</strong> </li>
  <li><strong>5</strong> PER <strong>Request</strong></li>
  <li><strong>5</strong> PER <strong>Batch</strong></li>
  <li><strong>5</strong> PER <strong>Plate</strong></li>
  <li><strong>5</strong> PER <strong>Empty Well</strong> In <strong>Column</strong></li>
  <li><strong>9.0</strong> PER <strong>Sample</strong> DEAD VOLUME 9</li>
  </ol>
  
  <p>Now I need this regex to also check for the below given value</p>
  
  <pre><code>DataField = Value(9.0 PER Sample DEAD VOLUME 9)
  </code></pre>
  
  <p>I have tried an Reg Ex like below </p>
  
  <pre><code>^(.*)\s+[=]\s+(.*?)\s+[(](.*)[)]$
  </code></pre>
  
  <p>Which would do this.</p>
  
  <pre><code>Input : DataField = Value (5 PER Sample)
  </code></pre>
  
  <p>Current Grouped Output: </p>
  
  <pre><code>Group 1: DataField
  Group 2: Value
  Group 3: 5 PER Sample
  </code></pre>
  
  <p>Now I need an which would combine the existing two regex to group the input like below (highlighted).</p>
  
  <ol>
  <li><strong>DataField</strong> = <strong>Value</strong> ( <strong>9.0</strong> PER <strong>Sample</strong> DEAD VOLUME 9 )  </li>
  <li><strong>DataField</strong> = <strong>Value</strong> ( <strong>9.0</strong> PER <strong>Sample</strong>)  </li>
  <li><strong>DataField</strong> = <strong>Value</strong> ( <strong>5</strong> PER <strong>Empty Well</strong> In <strong>Column</strong>)  </li>
  <li><strong>9.0</strong> PER <strong>Sample</strong> DEAD VOLUME 9 </li>
  <li><strong>5</strong> PER <strong>Sample</strong>  </li>
  <li><strong>5</strong> PER <strong>Request</strong>  </li>
  <li><strong>5</strong> PER <strong>Batch</strong>  </li>
  <li><strong>5</strong> PER <strong>Plate</strong>  </li>
  <li><strong>5</strong> PER <strong>Empty Well</strong> In <strong>Column</strong>  </li>
  </ol>
  
  <p>Could someone please help in achieving this? </p>