[問題] 一個應該算簡單的問題

看板Perl作者 (成就你的大事)時間18年前 (2007/03/09 23:40), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
假設我有一個檔案內容如下: synaptodendritic B-protein domains I-protein Job B-protein kinases B-protein 5′ B-protein stem-loop I-protein domain I-protein ---------------------------------------- 上面都是以\t(tab鍵)作為間隔 其判斷規則是B-protein結尾一定是開頭 然後若其後有出現I-protein結尾的話則一直取出直到遇到B-protein為止只有單獨的B-protein結尾而後面沒有I-protein則只取出B-Protein前那個字即可 然後我想取得 synaptodendritic domains,Job,kinases,5′ stem-loop domain 請問要怎麼寫呢?感謝大家=\ = -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.96.202
文章代碼(AID): #15yN_qsg (Perl)
文章代碼(AID): #15yN_qsg (Perl)