用正则提取一段文字,该怎么写,文本如下

用正则提取一段文字,该怎么写,文本如下:
Text:
Hello,
<br><br>
Click the link below to finish your login to bo.qa.atomictitan.dev:
<br>
https://enlabs-dev.cloudflareaccess.com/?nonce=P0FoMt8z0zVTD6zE6LKRVknk6okRMTY1MzkwNTQ2MQ&code=433507

<br><br>
You can also copy and paste the code below into the Cloudflare Access login screen:
<br><br>
433507
<br><br>
This code will expire after 10 minutes or if you request a new code.
<br><br>
Thanks,
<br><br>
The Cloudflare Team

想要提取433507这个文本


import re
a = """<br><br>
You can also copy and paste the code below into the Cloudflare Access login screen:
<br><br>
433507"""
s = re.findall(r"[0-9]+",a)
print(s[0])

仅针对这段文本,如果你想要正则一个html文本的话,需要前后文,不然容易锁定错

可以用语言描述一下吗?就是说为什么要提取433507。
在于433507的特征,比如在整个文本的最后,在几个

下面,在什么类型的文本下边,在什么上边,是什么类型比如数字,几位数字,等等,加在问题中