I am trying to extract all matches contained in between "><" in a string
The code below only returns the first match in the string.
In:
import pandas as pd
import re
df = pd.Series(['<option value="85">APOE</option><option value="636">PICALM1<'])
reg = '(>([A-Z])\w+<)'
df2 = df.str.extract(reg)
print df2
Out:
0 1
0 >APOE< A
I would like to return "APOE" and "PICALM1" and not just "APOE"
Thanks for your help!