0

I want to find all expressions wrapped with "<" and ">" For example, in <2><1>, I want <2> and <1> seperately.

s = re.findall('<.*>', '<2><1>')

gives me only <2><1>, which is different from what I've intended. Can you give me an answer to find all of these expressions ? Thanks much in advance.

piljae.chae
  • 263
  • 1
  • 3
  • 8

0 Answers0