I would further recommend a general adjustment of how you approach it. You are doing black list filtering, i.e., I don't want "\s." White listing is safer and makes it harder to violate expectations. The following is a stab at it from your sample data.
$temp =~ /\b(mmu-miR-\d\d[ab\d])\b/; print "$1 is all I want\n";
Like ikegami said, encoding issues might need to be handled first.
In reply to Re: Something strange in the world or Regexes
by Your Mother
in thread Something strange in the world or Regexes
by mrguy123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |