in reply to Regex problem
Will do the same as your lengthy regex, except, that it doesn't grep all the individual numbers.if ($line =~ /^0.{9}(\t\d{1,20}){49}/) {
Okay: This will also match (e.g.) IP Adresses, as i doesn't take into account, that a number may only contain 1 decimal point, but maybe it's okay. You're the only one who can tell.if (/^0[0-9a-fA-F]{9}(?:\t[\d\.]{1,20}){49}/ {
|
|---|