typo on parts regex
Pre-regex check for req or sec on
This works, but I opted to just modify the regex to be lenient and take both forms with non capturing parentheses. Less complexity.
var re = /(\d+) bytes from (.+): icmp_(?:r|s)eq=(\d+) ttl=(\d+) time=([\d.]+) ms/;
Well that's even better, indeed. I'll have to admit I still have to get used to regex... =P
Until next ping version, I say...