如何用一个正则表达式捕获两个不在同一行的变量

大和别墅 发布于 2016/10/18 17:42
阅读 126
收藏 0
如何用一个正则表达式捕获两个不在同一行的变量,比如说
>Cotton_A_19774_BGI-A2_v1.0  locus=CA_chr11:35453738:35456746:+ [translate_table: standard]
MEALAVQAGGQGVGSLVTPAVEGGKSIFNCLRHKYAYVKNIRENFDKLVKEEVYLSNVDADVKTKLERNKLTKEKTNRCETWLNEVENMKQEIENLKVDYTNTSSYFCGLCPFPSLLKLGKRIVKKTTEVVELRNQLGQITIMHEKPPAPPVPVIEKHARKKGDVPSFDSHVETLAEWLEDENLKRICIWGPPGVGKTKIMGMLHDRVGKSGKFDIIFWVNVTAEGRIRDILDEIWKRLDMKVDGNYGADQRANMISEELKDKSYVLFLDLDDIVSEIDLRKVGIHDEHEHGKVVFACRYKNNNICGGTDEEMNVQRLSDEDAESFFWEIVGSDLKSNPDIKPVAKHIIKECGGMPLLIKLIGNRLAKVDDPAIWRDLLSQLRSPTMEPQEPLEEVYKAFKLVYEKLSEEMKPCLLYWAVFPAGYEIFRDHIIDCWRAEQFFSSQRKLPRTRDRGHAILDEFVRKSLLEKGRKWGHFKMYEYFQRVALRIANLEKNFNFFVTEDENIIDEEWERARRVSLIRVRLSTLPKRPQCCGILTLLLQESCLAEFPREFFGYMCGLQVLNLHEIRITSLPSSICSLTNLKGLFINNCSQLVQLPSQIGDLQHLEILDIRQTGLYSLPVEIGELFNLKCLRVSFTEDVGKYNHVEEVKPMIPSNVIARLSKLEELSIDVSHSSSRYQNAAEIVREISELEELTTLCFFFPELASFNSFIRNSKSWKGSNTISAGNSFRSFNIVVGCRRNNPASEFRVFECSAEKHLRFYAGNEFPNAILEVLKQAKALELIGHQTATSLSGFRADNLQGVEACIVEECNQMENIIDRDQTSIAFQDDDNMGVEFERLKSLHICNLPKLKGIWRGSIESKSLCSLTSLSLKGCNSIGVLFSQGMIIRLSQLEKLEVKDCCVLKEIIEDGSIVESHSFPKLKYLQLHDLPELCAISHISLQWPSLET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