[123.234.435.234] err <-- Extract Numbers from between brackets
Posted on 2006-06-23
I need to go through A LOT of Mail Server Log Files.
This is what the string will look like:
20060623 055059 127.0.0.1 SMTPD (002700E8) [220.127.116.11] ERR my-domain.com invalid user
(Of course the my-domain.com, is not Our Domain, just changed it for here.
And I need a way to extract out the BAD IP Address.
Which as you can see is located in the 5th Column [18.104.22.168]
I need to then put the Bad IP Address's into another TMemo.
Our log files are FULL of Bad IP Address, The code must be very robust.