the_slycer has asked for the wisdom of the Perl Monks concerning the following question:
I am relatively new to Perl and regular expressions in general, what I need to do is get rid of everything except the IP address. I can succesfully match the IP using hints from here but am uncertain how to strip all the rest of the string out. The format should end up as: 10.127.73.218, any help from some of you gurus would be great.<li><a href=http://10.127.73.218/foo>foobar</a></li> or <li><a href=http://10.127.73.218/boat>foobar 2000</a></li> etc..
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Getting an IP out of a string
by Cirollo (Friar) on Aug 16, 2000 at 20:47 UTC | |
RE: Getting an IP out of a string
by merlyn (Sage) on Aug 16, 2000 at 20:47 UTC | |
RE: Getting an IP out of a string
by knight (Friar) on Aug 16, 2000 at 21:07 UTC | |
by the_slycer (Chaplain) on Aug 16, 2000 at 21:34 UTC | |
by knight (Friar) on Aug 17, 2000 at 00:15 UTC | |
by the_slycer (Chaplain) on Aug 17, 2000 at 19:33 UTC | |
Re: Getting an IP out of a string
by raflach (Pilgrim) on Aug 16, 2000 at 21:40 UTC | |
by merlyn (Sage) on Aug 16, 2000 at 22:14 UTC | |
by bliz (Acolyte) on Aug 16, 2000 at 22:48 UTC | |
by Kozz (Friar) on Aug 17, 2000 at 01:10 UTC |