Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. foreach my $line (@lines)
  2. {
  3. if (($line =~ m/ Disk (d+)(d+)(d+)/) || ($line =~ m/ Disk (d+)(d+)/) || ($line =~ m/ Disk (d+)/) && ($line =~ /^(?:(?! Disk 0).)*$/))
  4. {
  5. print("heren");
  6. }
  7. }
  8. #if the line contains anything like "Disk 1","Disk 20", or "Disk 300" it will print "here" but if it is "Disk 0" it will not.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement