Q:

Print between string and a number through multiple lines

I'm trying to print the number 0123 which is located between a line of string and a line of a number
import re

s = """
test Code:
0123

1

text1 text2

   """

if re.findall(r'test Code:\s*(.*?)(?=\s*1)', s):

 test=re.findall(r'test Code:\s*(.*?)(?=\s*1)', s)

 print(test)    

My code prints the output like this ( "0" ) which is wrong,I want my output to be like this ( "0123" )

A:

You can try this.test Code:\s*(.*?)(?=\s+1)
"*" matches 0 or more ,"+" mathes 1 or more

