fork download
  1. import re
  2. mystring = "/some/path/with/%variable%/%inside%/%it%/"
  3. print(re.findall("%([^%]+)%", mystring))
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
['variable', 'inside', 'it']