in reply to Using a regexp to extract sequence fields

Hi tamaguchi, Try this,

use strict; use warnings; $_='>blabla1|anyting1|blabla2|anyting2|blabla3|'; if (m/>[^\|]+\|[^\|]+\|([^\|]+)\|/){ print $1; }

Updated

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';

Replies are listed 'Best First'.
Re^2: Using a regexp to extract sequence fields
by svenXY (Deacon) on Feb 13, 2006 at 10:09 UTC
    Hi,
    why the /si ? It's not necessary at all.
    Regards,
    svenXY