Fix regular expression to make more general for genes and contigs.