[Solved] Pattern matching and extracting it in the string occurrences
Try this one with the help of regex. In [105]: import re In [106]: m = re.findall(‘\${(.+?)}’, string) In [107]: m Out[107]: [‘data1’, ‘data2’, ‘data3’] 7 solved Pattern matching and extracting it in the string occurrences