title: Using regex to obtain the first IP?
body: <p>How can I use regex to return just the first dst IP from this data?</p>
  
  <pre><code>ipv4     2 udp      17 34 src=192.168.1.76 dst=192.168.1.254 sport=198 dport=53 packets=1 bytes=65 src=192.168.1.254 dst=192.168.1.76 sport=53 dport=198 packets=1 bytes=105 mark=0 use=2
  </code></pre>
  
  <p>Wanted result: 192.168.1.254</p>
  
  <p>What I have tried:</p>
  
  <pre><code>dst=([0-9]{1,3}\.){3}[0-9]{1,3}
  </code></pre>
  
  <p>This returns both the 1st and 2nd dst IPs.</p>
  
  <p>Demo: <a href="https://regex101.com/r/anONgm/2" rel="nofollow noreferrer">https://regex101.com/r/anONgm/2</a></p>