fork(2) download
  1. import re
  2. text = 'строка <, которую 123>надо<разделить>'
  3. print( ' '.join(re.findall(r'<([^<>]+)>', text)) )
Success #stdin #stdout 0.03s 9516KB
stdin
Standard input is empty
stdout
, которую 123 разделить