I refer to the question how to extract a substring from inside a string in Python? and have further question.
What if my string is something like:
gfgfdAAA1234ZZZsddgAAA4567ZZZuijjk
I want to extract 1234 and 4567, is it stored as a list?
I refer to the question how to extract a substring from inside a string in Python? and have further question.
What if my string is something like:
gfgfdAAA1234ZZZsddgAAA4567ZZZuijjk
I want to extract 1234 and 4567, is it stored as a list?
re.findall:re.findall('AAA(.+?)ZZZ', text)