$string =~ m/\s(\d+)\s/; $nposition = $1;
If the sequences are in a file, you can just open the file and read through every line with a while loop. If you find a match, you can put it in an array.
In reply to Re: matching every occurrence of a regex
by jacques
in thread matching every occurrence of a regex
by Becky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |