Sorry in advance if this is in the wrong section.
I’m currently working on gene annotations and in order for me to submit my gene annotations for alignment, I can only have the following “>gi etc.” only once in a single line. However, the files that I’m working on has more than one “>gi etc.” in a single line. For example:
gi|566047797|gb|AHC51682.1| anthranilate synthase subunit II [Sulfolobus acidocaldarius SUSAZ]
MQWGCKITDITLIIDNYDSFVYNIAQLIGELGSYPIVIRNDEITLKGVERLNPDRIVISPGPGSPDKKEDIGIVNDVIKY
LGRRIPILGICLGHQAIGFTFGTVIRRAKTIYHGKISKIVHSSSSTLYDGIPNRFEATRYHSLVIDNVKEPLVIDAYSEE
DKEIMGVHHIEYRIYGVQFHPESVGTGYGRRIFYNFLNKV
gi|499287957|ref|WP_010979247.1| anthranilate synthase subunit II [Sulfolobus tokodaii] >gi|15921491|ref|NP_377160.1| anthranilate synthase component II [Sulfolobus tokodaii str. 7] >gi|15622277|dbj|BAB66269.1| anthranilate synthase component II [Sulfolobus tokodaii str. 7]
MDLTLIIDNYDSFVYNIAQIVGELGSYPIVIRNDEITVKGVERINPDRIIISPGPGTPEKKEDIGIVIDVIKQFGRRIPI
LGICLGHQAIGYAFGAKIRKARRVFHGKISKINIINNVALYDGLPKQIEATRYHSLVIDDVKEPLIIDAYSLEDNEIMAI
HHSELRIYGVQFHPESVGTPLGKRIIYNFLNKV
I would like Sublime to Find and Erase the text that are in red. Notice that the there is a space prior to the second “>gi etc.” So, I’ve tried Find and Replace " >.+$", but it doesn’t work. Can somebody tell me how to do this properly? Thanks in advance.