I have this line:
[1] "RPKM_AB123_Gm12878_control.extended.bed_28m_control_500 and RPKM_AB156_GM12878-50ng_test.extended.bed_28m_test_500"
and I want to extract AB123_Gm12878_control and AB156_GM12878-50ng from the string.
I have tried this and it isn't working yet.
if ($_ =~ /.*"RPKM_([\w.]+).extended.+\s\w+\sRPKM_([\w.]+).extended.+"/){
print $1,"\t",$2,"\t";
}
Can someone point out where I did it wrong? Thanks!