Hello,
I am new to perl and trying to parse some reports. I am trying to get organism's name from the description.
Its working when field is like this:
ATP synthase F1, alpha subunit [Acidimicrobium ferrooxidans DSM 10331].
I am using this:
if($desc =~ /\[(.*?)\]/){$org = $1;}
But its not working when field is little complicated:
enoyl-[acyl-carrier-protein] reductase [NADH] 2 [Silicibacter sp. TrichCH4B].
I would really appreciate your help.
Thanks
Shalabh
I am new to perl and trying to parse some reports. I am trying to get organism's name from the description.
Its working when field is like this:
ATP synthase F1, alpha subunit [Acidimicrobium ferrooxidans DSM 10331].
I am using this:
if($desc =~ /\[(.*?)\]/){$org = $1;}
But its not working when field is little complicated:
enoyl-[acyl-carrier-protein] reductase [NADH] 2 [Silicibacter sp. TrichCH4B].
I would really appreciate your help.
Thanks
Shalabh