Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Kindly advice me the regex to get only the ip address from each line. Thanks for your help in advance.2011.05.13-14:54:58, test@xyz.com, 180.211.51.11, pop3 2011.05.13-14:57:26, test@xyz.com, 160.234.47.12, pop3 2011.05.13-14:57:54, www@abcd.com, 166.22.22.224, imap 2011.05.13-14:57:55, www@somedomain.com, 172.58.22.154, imap 2011.05.13-15:03:08, www@example.com, 190.22.120.44, pop3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex for perl script
by Utilitarian (Vicar) on May 15, 2011 at 16:24 UTC | |
by rev_1318 (Chaplain) on May 15, 2011 at 17:25 UTC | |
by Anonymous Monk on May 15, 2011 at 20:14 UTC | |
by ww (Archbishop) on May 15, 2011 at 20:41 UTC | |
by davido (Cardinal) on May 15, 2011 at 20:56 UTC | |
by Anonymous Monk on May 16, 2011 at 18:14 UTC | |
by marinersk (Priest) on May 16, 2011 at 12:54 UTC | |
|
Re: regex for perl script
by Khen1950fx (Canon) on May 15, 2011 at 21:26 UTC | |
|
Re: regex for perl script
by AnomalousMonk (Archbishop) on May 15, 2011 at 23:00 UTC | |
|
Re: regex for perl script
by CountZero (Bishop) on May 16, 2011 at 06:36 UTC | |
by Anonymous Monk on May 16, 2011 at 13:13 UTC | |
by Khen1950fx (Canon) on May 16, 2011 at 20:25 UTC |