From the below string, I want to extract the words between delimters [ ] like \'Service Current\',\'Service\',\'9991\',\'1.22\':
[ ]
\'Service Current\',\'Service\',\'9991\',\'1.22\'
str=\'
you can use regex
import re s = re.findall('\[(.*?)\]', str)