$compseqOutput =~ m/Total\scount\s+(\d+).+? C\s+(\d+).+? G\s+(\d+).+? (?:Other\s+(\d+).+)?$/sx
You have to anchor the end of the string, or else the non-greedy match will happily ignore everything after "10692025", including the "Other" line.
In reply to Re: Regular Expn Problem
by TilRMan
in thread Regular Expn Problem
by venkatr_n
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |