title: Java Regular Expression for Ping Results
body: <p>I am working on Reading data from a ping response as follows which is returned by one of the api in our application.</p>
  
  <pre><code>"PING 2001:0558:4070:0071:021D:D4FF:FEB3:1F0B (2001:558:4070:71:21d:d4ff:feb3:1f0b): 64 data bytes
  72 bytes from 2001:558:4070:71:21d:d4ff:feb3:1f0b: icmp_seq=0. time=11.7 ms
  72 bytes from 2001:558:4070:71:21d:d4ff:feb3:1f0b: icmp_seq=1. time=12.1 ms
  &lt;p /&gt;
  2001:0558:4070:0071:021D:D4FF:FEB3:1F0B PING Statistics----
  2 packets transmitted, 2 packets received, 0% packet loss
  round-trip (ms)  min/avg/max/stddev = 11.7/11.9/12.1/0.32"
  </code></pre>
  
  <p>I need a single Regular Expression pattern matcher to get</p>
  
  <pre><code>List&lt;Double&gt; times = [11.7, 12.1]
  int transmitted = 2
  int received = 2
  double loss = 0;
  double min=11.7
  double avg=11.9
  double max=12.1
  double stddev=0.32
  </code></pre>
  
  <p>I have been working but could get a single RE where I can match everything</p>
  
  <pre><code>Pattern re = Pattern.compile( "(.*) = (.+?)/(.+?)/(.+?)/(.*)",
                  Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
  </code></pre>