in reply to Match and Extract String with Regex
my ($tair_id) = $str2 =~ /(AT\dG\d{5})/i; [download]
my ($tair_id) = $str2 =~ /(AT\dG\d{5}(?:\.\d+)?)/i; [download]