看板 Perl 關於我們 聯絡資訊
若我想找出有符合下列樣版中的字 interaction,interactions,interacts 並由它們其中之一個取出如下的內容: 往前或後後推直到找到前後各有一個<PTN> 的兩個字,若前/後無<PTN>則往另一方向取出 兩個<PTN>為止,若往前時是句首則停止,若往後的第二個字是.則也是停止。 請問該如何作呢? ---------------------------------------------------------------------------- 比對到:interaction <PTN> mRNA coimmunoprecipitated with <PTN> in resting synaptoneurosomes, but the interaction was lost shortly after <PTN> treatment. --------------------------------------------------------------------------- 比對到:interactions Our data suggest that physical interactions between <PTN> and <PTN> mRNA underlie translational repression, ---------------------------------------------------------------------------- 比對到:interacts 來源: <PTN> interacts with <PTN> RNA as well as a number of <PTN>, ---------------------------------------------------------------------------- 目前的想法是不是需要在讀檔的時候,加入不同的條件式來判= = 那如果是樣子做的法,那麼不就需要寫很多if或者是case之類的判斷 且若用常規表示式來寫的話,則好像不能只用一個就解決??? 有其它人有更好更方便的方法嗎?可以一起討論或分享心得嗎?:) 感謝你^^ -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.142.234 ※ 編輯: Yaowei 來自: 140.116.142.234 (03/19 01:25)
LiloHuang:說句坦白話 我看不懂你要表達的意思~_~" 03/20 00:05
Yaowei:我改成下一個文章的內容了@@ 03/20 22:33