python get substring between strings

Solutions on MaxInterview for python get substring between strings by the best coders in the world

showing results for - "python get substring between strings"
Camilo
15 Aug 2019
1import re
2
3s = 'asdf=5;iwantthis123jasd'
4result = re.search('asdf=5;(.*)123jasd', s)
5print(result.group(1))
6