Leser: 1
8 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
my @emails;
open(FILE,"<$file") or die $!;
while(my $line = <FILE>){
if($line =~ /([^\s]+\@[a-zA-Z0-9\-\.]+)/ ){
push(@emails,$1);
}
}
close FILE;
print $_,"\n" for(@emails);
> perl -nle 'print $1 while /([^\s<(]+\@[a-z\d.-]+)/ig' < text.txt > adressen.txt
> perl -MRegexp::Common=Email::Address -nle 'print $1 while /($RE{Email}{Address})/g' < text.txt > adressen.txt
8 Einträge, 1 Seite |