in reply to Re^4: REGEX omit dashes - simple but ...
in thread REGEX omit dashes - simple but ...
or possiblyif ($line =~ s/^\s*ACCESSION\s*NUMBER:\s*/) { $line =~ tr/-//; }
if ($line =~ s/^\s*ACCESSION\s*NUMBER:\s*([-\d]+)$/m) { $access_num = $1; $access_num =~ tr/-//; }
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|