in reply to Why this code not working with pcap files?

Not a complete answer, but the regex expressions seem to share a lot of commonality and a fair amount of complexity. Can't you have one regex to check you've found a relevant line, then use much smaller regexs to sort out how you need to respond to that line?
  • Comment on Re: Why this code not working with pcap files?