I would like to extract IPV4 address from each line. There could be valid or invalid ip addresses, I would like to print them all.
e.g.
Failed service from 212.345.23.234
Successfully logged in at 13:09:89 from 12.34.76.54
Ping from 123.567.42.56
.....
.....
Output:
212.345.23.234
12.34.76.54
123.567.42.56
.....
I need a regular expression that I can run against each line straight out like currentLine.contains(PATTERN). I don't want to tokenize the string into tokens and run RE against each token.