I have a string, which contains placeholders, surrounded by "%". I want to get a list of those placeholders. I tried this regex
m = re.search('%s(.*)%s' % ('\%', '\%'), message)
on the following string
black %brown% fox jumped over the %lazy% dog
I expect to get
['brown', 'lazy']
but instead, I get
'brown% fox jumped over the %lazy'