Thread Regex Speicher ($1...) leeren (4 answers)
Opened by Gast at 2007-05-10 15:38

topeg
 2007-05-10 23:40
#76625 #76625
User since
2006-07-10
2611 Artikel
BenutzerIn

user image
oder:
Code (perl): (dl )
1
2
3
4
5
6
7
8
for my $zone (@zones)
{
  my $lookup = `nslookup $zone $ns1`;
  if($lookup =~ /^Address:\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/im)
  {  print $1  }
  else
  { print 'No answer' }
}

View full thread Regex Speicher ($1...) leeren