I'm new to python and I have this string:
row = <aa>hello</aa><bb>bello</bb><aa>great</aa><cc>today</cc><aa>later</aa><bb>fine</bb>
I need to get all data that is in aa :
hello,great,later
my code is:
allAA =[]
patternAA = "<aa>(.*)</aa>"
allAA = '\''+(re.search(patternAA, str(row))).groups() +'\','
and I get this result = <aa>hello</aa><bb>bello</bb><aa>great</aa><cc>today</cc><aa>later</aa>
How can I get the data I need?