我在格式的文件中有一系列字符串:
>HEADER_Text1
Information here, yada yada yada
Some more information here, yada yada yada
Even some more information here, yada yada yada
>HEADER_Text2
Information here, yada yada yada
Some more information here, yada yada yada
Even some more information here, yada yada yada
>HEADER_Text3
Information here, yada yada yada
Some more information here, yada yada yada
Even some more information here, yada yada yada
我正在尝试找到一个正则表达式模式,它将删除>
下一个字符之间的字符下方的换行符>
。所以最终结果看起来像:
>HEADER_Text1
Information here, yada yada yada Some more information here, yada yada yada Even some more information here, yada yada yada
>HEADER_Text2
Information here, yada yada yada Some more information here, yada yada yada Even some more information here, yada yada yada
>HEADER_Text3
Information here, yada yada yada Some more information here, yada yada yada Even some more information here, yada yada yada
有谁知道我怎么能想出一个正则表达式模式来做到这一点?
旁注:这种格式作为 FASTA 格式在计算科学中很常见。
谢谢!