Sample Header Ad - 728x90

last match with RegEx

0 votes
1 answer
91 views
I do grep -oP '(?<=%28).*?(?=%29)' f.txt on the following line chr01_pilon_pilon gmap-gsnap mRNA 55846944 55847057 . + . ID=NbD052382.1.mrna1;Name=NbD052382.1;Note=cytochrome b6/f complex subunit V %28plastid%29 %28NP_054520.1%29;Parent=NbD052382.1.path1;coverage=100.0;identity=100.0;indels=0;matches=114;mismatches=0;unknowns=0 and I get plastid%29 %28NP_054520.1%29. How is it possible to get the last match only NP_054520.1? Thank you in advance
Asked by user977828 (913 rep)
Sep 30, 2020, 11:08 PM
Last activity: Sep 30, 2020, 11:16 PM