if ($text =~ /Screening Ligands by X[ -]ray Crystallography/) { say "MATCH!"; } else { say "NOPE!"; } }