How to get AC, Tax_id, optionally VAR_SEQ, and Sequence?
1) (?ms)ID\s+.?^AC\s+(\w+);.?^OX\s+NCBI_TaxID=(\d+).?(?#how to optionally capture group ^FT\s+VAR_SEQ.?\/FTId=\w+\. ).?^\s{5}(.?)//
2) (?ms)(FT\s+VAR_SEQ.*?\/FTId=\w+\.)
(1) can give AC, Tax_id and Sequence and these 3 fields are always present in an Entry, but VAR_SEQ field is optional. (2) gives ...
Submitted by anonymous - 8 years ago