data1 = 'Dear   John    Buy   1 of Coke, cost 10 dollars'
match_object = reobject.search(data1)
print((match_object.group('name'), match_object.group('num'), match_object.
    group('drink'), match_object.group('cost')))
Grouping data with a regex in Python