my @matches = ( $line =~ m/$pattern/g )