my @array = grep defined, split / ([|&]) |\n/, $str;