title: regex for dns logs
body: <p>I have a DNS logs that come like this :</p>
  <pre><code>17/04/2017 08:59:38 09DC PACKET  000000A939E64600 UDP Rcv 10.254.30.96    c650   Q [0001   D   NOERROR] A      (8)master11(10)teamviewer(3)com(0)
  17/04/2017 08:59:38 09DC PACKET  000000A9404FABE0 UDP Rcv 10.254.30.87    9bae   Q [0001   D   NOERROR] A      (7)master2(10)teamviewer(3)com(0)
  17/04/2017 08:59:42 09E0 PACKET  000000A9404D15B0 UDP Rcv 10.254.35.43    fdcc   Q [0001   D   NOERROR] A      (6)mobile(4)pipe(4)aria(9)microsoft(3)com(0)
  17/04/2017 09:49:45 09E8 PACKET  000000A94194FE80 UDP Rcv 8.8.8.8         646d R Q [8381   DR NXDOMAIN] A      (3)mta(3)dkf(2)com(0)
  </code></pre>
  <p>In the end of each line you will the see the domain name represented like this:</p>
  <pre><code>(7)master2(10)teamviewer(3)com(0)
  </code></pre>
  <p>I wanted to get only the following parts :</p>
  <pre><code>master teamviewer com 
  </code></pre>
  <p>and replace the the space by a &quot;.&quot; to have a result like this :</p>
  <pre><code>master2.teamviewer.com 
  </code></pre>
  <p>To do that I used this regex :</p>
  <pre><code>(?&lt;=\)).*?(?=\()
  </code></pre>
  <p>But unfortunately i got this error :</p>
  <pre><code>Lookbehind is not supported in javascript
  </code></pre>
  <p>Do any one have a suggestion or a solution of this problem ?
  Thanks</p>