import re s = 'asdf=5;iwantthis123jasd' result = re.search('asdf=5;(.*)123jasd', s) print(result.group(1))
2.1m questions
2.1m answers
60 comments
57.0k users