Regular Expressions 101

Library entries

How to get AC, Tax_id, optionally VAR_SEQ, and Sequence?

Vote

0

Regular Expression
python

"
(?ms)ID\s+.*?^AC\s+(\w+);.*?^OX\s+NCBI_TaxID=(\d+).*?(?#how to optionally capture group ^FT\s+VAR_SEQ.*?\/FTId=\w+\. ).*?^\s{5}(.*?)//
"
gx

Description

Loading markdown...
Submitted by anonymous - 5 years ago