title: How to parse email body with Robot Framework
body: <p>I'm tryin to parse a specific string from an email(<code>gmail</code>) using the ImapLibrary2 in Robot Framework.</p>
  <p>Here is the <strong>code</strong> I'm trying to use -</p>
  <pre><code>Email Parsing
  
  Open Mailbox    host=imap.gmail.com    user=testing.abc@gmail.com    password=Secret
  ${LATEST} =     Wait For Email    sender=support@abc.net    timeout=60
  ${HTML} =       Get Email Body    ${LATEST}
  ${Paser_Body}=  Get Regexp Matches    ${HTML}    ^.*([a-zA-Z]+(\d[a-zA-Z]+)+).*$
  Log    ${Paser_Body}
  Close Mailbox
  </code></pre>
  <p>And the <strong>email body</strong> is-</p>
  <pre><code>Reset Your Password
  To reset the password for the user account associated with your email, use the code below and follow the procedure on the application. If you don't want to reset your password, please disregard this email.
  
  ASNjfO24j6RrwKg6PP3scO1EeivA88
  
  
  
  Thanks,
  Abc Support Team
  </code></pre>
  <p>I want to extract the token  <code>ASNjfO24j6RrwKg6PP3scO1EeivA88</code> from the email, but run the code, I get a null output.</p>
  <p>Output-</p>
  <pre><code>Starting test: Test.Email Parsing 
  20210317 11:53:21.493 :  INFO : ${LATEST} = 29 
  20210317 11:53:21.630 :  INFO :   ${HTML} = 
          &lt;tbody&gt;     
              &lt;tr&gt;        
                 &lt;td style=&quot;padding:40px 0  0 0;&quot;&gt;            
                    &lt;p style=&quot;color:#000;font-size: 16px;line-height:24px;font-family:'HelveticaNeue','Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:no...  
  20210317 11:53:21.630 :  INFO : ${Paser_Body} = []  
  20210317 11:53:21.630 :  INFO : []  
  Ending test: Test .Email Parsing
  </code></pre>
  <p>What am I doing wrong?</p>