in reply to Re: Regex Question
in thread Regex Question

Update: if ($1 eq 'C' && $2 eq 'O') should be if ($2 eq 'C' && $3 eq 'O'), because $1 is the entire matched expression.

Caution: Contents may have been coded under pressure.