例えば一例ですが、
aaagggaaagggaaagggaaagggaaagggaaagggaaagggaaaggg
tttccctttccctttccctttccctttccctttccctttccctttccc
aaagggaaagggaaagggaaagggaaagggaaagggaaagggaaaggg
tttccctttccctttccctttccctttccctttccctttccctttccc
aaagggaaagggaaagggaaagggaaagggaaagggaaagggaaaggg
tttccctttccctttccctttccctttccctttccctttccctttccc
.........
というテキストがあるとして、正規表現を使って \n[agtc]+\n\n を \n に置換すれば、
aaagggaaagggaaagggaaagggaaagggaaagggaaagggaaaggg
aaagggaaagggaaagggaaagggaaagggaaagggaaagggaaaggg
aaagggaaagggaaagggaaagggaaagggaaagggaaagggaaaggg
というテキストがすぐに取り出せます。 |
|