Ok.. this works.
but I think that this part
could use some improvement (there's got to be a better way that I'm just not seeing). Also since I will never use that data is there a way to do it without capturing it into $2 $4 and $6?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;
Code:
[gray]#!/usr/bin/perl[/gray]
[blue]@list[/blue] = [red]qw([/red][purple]_123_._45_.67.890 123.45.67.890 _123_._45_.___67_.___890 _123_._45_.67.890 _123_._45_._67._890___[/purple][red])[/red][red];[/red]
[olive][b]for[/b][/olive] [red]([/red][blue]@list[/blue][red])[/red] [red]{[/red]
[olive][b]if[/b][/olive] [red]([/red][blue]$_[/blue] =~ [red]/[/red][purple]([purple][b]\d[/b][/purple]{1,3})(.[purple][b]\.[/b][/purple]|[purple][b]\.[/b][/purple]|.[purple][b]\.[/b][/purple].|[purple][b]\.[/b][/purple].)([purple][b]\d[/b][/purple]{1,3})(.[purple][b]\.[/b][/purple]|[purple][b]\.[/b][/purple]|.[purple][b]\.[/b][/purple].|[purple][b]\.[/b][/purple].)([purple][b]\d[/b][/purple]{1,3})(.[purple][b]\.[/b][/purple]|[purple][b]\.[/b][/purple]|.[purple][b]\.[/b][/purple].|[purple][b]\.[/b][/purple].)([purple][b]\d[/b][/purple]{1,3})[/purple][red]/[/red][red])[/red][red]{[/red]
[url=http://perldoc.perl.org/functions/print.html][black][b]print[/b][/black][/url] [red]"[/red][purple]1: [blue]$1[/blue] [blue]$3[/blue] [blue]$5[/blue] [blue]$7[/blue][purple][b]\n[/b][/purple][/purple][red]"[/red][red];[/red]
[red]}[/red]
[red]}[/red]
but I think that this part
Code:
(.\.|\.|.\..|\..)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;