diff --git a/fqfilter_v2.pl b/fqfilter_v2.pl index 0e88a8a..b200161 100644 --- a/fqfilter_v2.pl +++ b/fqfilter_v2.pl @@ -305,11 +305,11 @@ BEGIN chomp($rid); if($rid =~ m/^\@.*\s/){ - $rid =~ m/^\@(.*)\s/; + $rid =~ m/^\@(\S+)/; $ridtmp = $1; } else{ - $rid =~ m/^\@(.*)/; + $rid =~ m/^\@(\S+)/; $ridtmp = $1; }