我有这条线:
[1] "RPKM_AB123_Gm12878_control.extended.bed_28m_control_500 and RPKM_AB156_GM12878-50ng_test.extended.bed_28m_test_500"
我想从字符串中提取AB123_Gm12878_control
和。AB156_GM12878-50ng
我已经尝试过了,但它还没有工作。
if ($_ =~ /.*"RPKM_([\w.]+).extended.+\s\w+\sRPKM_([\w.]+).extended.+"/){
print $1,"\t",$2,"\t";
}
有人能指出我哪里做错了吗?谢谢!