title: Extract customer data from email
body: <p>I am getting my emails through imap with php, and I get in return the message's body. I need to extract some customer info from this message, like Name, E-mail, Dates and related apartment.</p>
  
  <pre><code>--_av-ml1j40HUdHU5gAwKk3Xhrg
  Content-Type: text/plain; charset=utf-8
  Content-Transfer-Encoding: quoted-printable
  
         --- Para responder este email, clique no botão azul abaixo ---     
  
  
  Fernando, há um interessado em alugar seu imóvel!        
    COBERTURA Fantástica de FRENTE MAR! Para 6, Wifi, Ar C., Churrasq
  &lt;https://www.temporadalivre.com/conversas?id_hash=Guoqweasdd8xpu9jqlGN&gt; 
       *Dados do Interessado*
  
    *Vagner Fulano*
   *vagner.spqweor01@gmail.com*
  
   *Período*
  
   21 de Dezembro de 2019 a 
  26 de Dezembro de 2019
  (*5 diárias*) 
  
   *Hóspedes*
  
    2 adultos, 1 criança
  
   *Telefone*
  
   44999238255
  
   *País*
  
   Brasil
  
   (localização por estimativa)
  
   *Mensagem*
  
   -
        Clique aqui para responder →
  &lt;https://www.temporadalivre.com/conversas?id_hash=GuoieVQACd8xpu9jqlGN&gt;    
  </code></pre>
  
  <p>Above is the partial string that I can get from my emails. Or maybe, this other part can help:</p>
  
  <pre><code>                    &lt;table style="border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 100%; padding: 0;"&gt;&lt;tr style="vertical-align: top; text-align: left; padding: 0;" align="left"&gt;&lt;th style="color: #0a0a0a; font-family: Helvetica, Arial, sans-serif; font-weight: normal; text-align: left; line-height: 150%; font-size: 16px; margin: 0; padding: 0;" align="left"&gt;
                           &lt;div style="color: #daa520;"&gt;
                            &lt;b&gt;Dados do Interessado&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;
                             &lt;div style="color: #808000;"&gt;
                                &lt;b&gt;Vagner Splendor&lt;/b&gt;&lt;br /&gt;
                                &lt;span style="font-family: Helvetica, Arial, sans-serif; font-weight: normal; text-align: left; line-height: 1.3; text-decoration: none; margin: 0; padding: 0; font-size: 0.8em"&gt;&lt;i&gt;vagner.splendor01@gmail.com&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
  
  
                             &lt;div style="color: #daa520;"&gt;&lt;b&gt;Período&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;
                            &lt;div style="color: #808000;"&gt;21 de Dezembro de 2019 a &lt;br&gt;26 de Dezembro de 2019&lt;br&gt;(&lt;b&gt;5 diárias&lt;/b&gt;) &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
  
                             &lt;div style="color: #daa520;"&gt;&lt;b&gt;Hóspedes&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;
                            &lt;div style="color: #808000;"&gt; 2 adultos, 1 criança&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
  
                             &lt;div style="color: #daa520;"&gt;&lt;b&gt;Telefone&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;
                            &lt;div style="color: #808000;"&gt;44995528255&lt;/div&gt;&lt;br /&gt;
  
                              &lt;div style="color: #daa520;"&gt;&lt;b&gt;País&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;
                              &lt;div style="color: #808000;"&gt;Brasil&lt;br /&gt;&lt;/div&gt;
                              &lt;div style="color: #808000; font-size: 14px"&gt;(localização por estimativa)&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
  
                            &lt;div style="color: #daa520;"&gt;&lt;b&gt;Mensagem&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;
                            &lt;div style="color: #808000;"&gt;-&lt;/div&gt;
                          &lt;/th&gt;
                        &lt;/tr&gt;&lt;/table&gt;&lt;/th&gt;
                  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
  </code></pre>
  
  <p>Would guys have a solution for me? I have no idea how I can use regex for that matter.</p>