S
Stan Brown
I'm trying to parse some tcpdump output (converted to text) to put it into
a database.
The records of interest look like this:
170.85.113.61.34203
Which is, of course an IP address with the port number prepended. I can't
seem to manage to come up with a regex that will match this. I tried
something like:
/(\d{1,5}\.?){5}/
But it does not seem to work.
Cab some kind guru enlighten me on this mystery?
a database.
The records of interest look like this:
170.85.113.61.34203
Which is, of course an IP address with the port number prepended. I can't
seem to manage to come up with a regex that will match this. I tried
something like:
/(\d{1,5}\.?){5}/
But it does not seem to work.
Cab some kind guru enlighten me on this mystery?