I have a string:
'PROTEIN\t1\t0\ttr|Q6ZN40|Q6ZN40_HUMAN\t\t-1\t;;;;;'.
And I need to capture the text between two |. So it would be 'Q6ZN40'.
I tried this code for that:
re.match('|(.+?)|', string).group(0)
but it gives me an empty string: ''.
What is wrong with my code ? I presume that the regex is not correct but I don't understand why..