title: How to search for email where the subject contains numbers
body: <p>I'm looking for emails where the title has information on how many Bitcoin I received, but as there's a number in the email title, I want a way to find emails where the number is equal to or greater than that number.</p>
  <p>Example... I have an email title like &quot;You received 0.000666703 BTC&quot; but I want to search if the title is this one or has a larger amount of numbers, for example, I want to be able to find this title &quot;You received 0.002719281 BTC&quot;, but I don't want to find this &quot;You received 0.000028181 BTC&quot; because the number is smaller.  I want to be able to find numbers greater than or equal to the first title, this is my code:</p>
  <pre><code>import imaplib                                       
  import credentials                                   
  import email
  from bs4 import BeautifulSoup                                                                             
  imap_ssl_host = 'imap.gmail.com'                     
  imap_ssl_port = 993                                  
  username = &quot;myemail&quot;          
  password = &quot;mypass&quot;
  server = imaplib.IMAP4_SSL(imap_ssl_host, imap_ssl_port)                                                                                                       
  server.login(username, password)                     
  server.select('INBOX')                               
  typ, data = server.search(None, '(FROM &quot;no-reply@coinbase.com&quot; SUBJECT &quot;You received 0,00066703 BTC&quot; SINCE &quot;24-Sep-2021&quot;)')                                         
  for num in data[0].split():                           
   typ, data = server.fetch(num,'(RFC822)')             
   msg = email.message_from_bytes(data[0][1])     
   print(msg.get_payload(decode=True))                
  </code></pre>
  <p>The beginning of the subject will always be &quot;You received&quot; but after that there are numbers, and letters that will be the amount of btc and &quot;BTC&quot; as well as my example in the question, but how can I extract only the numbers?</p>
  <p>The console output is HTML content, I just want to know if the title (like I explained before) exists so I can do the rest, is there any way to do this more efficiently?</p>