title: How to use multiple regex functions to extract data in python
body: <p>I'm not much familiar with python. I'm scraping data from a school site about its address, phone, email, and the school link. I scraped the json data, and one of the keys has all these values which i have shown below.</p>
  <p>This is the output which i receive under the key &quot;address&quot; :</p>
  <pre><code>&lt;br&gt;title='École privée'/&gt;
  17 rue Jean Gallart  &lt;br&gt;49650 ALLONNES  #This is the address
  &lt;br&gt;Téléphone : &lt;a href=&quot;tel:0241528201&quot;&gt;0241528201&lt;/a&gt;   #Phone no
  &lt;br&gt;Adresse de courriel : &lt;a href=&quot;mailto:ce.0491164Z@ac-nantes.fr&quot;&gt;ce.0491164Z@ac-nantes.fr&lt;/a&gt;  # Email 
  &lt;br&gt;&lt;br&gt;&lt;a href=&quot;./etablissement/Allonnes/ECOLE-PRIMAIRE-PRIVEE-SAINT-DOUCELIN/0491164Z.html&quot;&gt;  #Link for school
  </code></pre>
  <p><br> Everything was in a single line, i formatted it to look clear and removed unneccesary &lt;font  tags</p>
  <p>I want to extract these items in the following format:<br>
  <br> Address : 17 rue Jean Gallart 49650 ALLONNES
  <br> Telephone: 0241528201
  <br> Email: ce.0491164Z@ac-nantes.fr
  <br> Link for school = https://etablissement/Allonnes/ECOLE-PRIMAIRE-PRIVEE-SAINT-DOUCELIN/0491164Z.html</p>
  <p>I tried extracting email using regex :</p>
  <pre><code>emails = re.findall(r&quot;[a-z0-9\.\-+_]+@[a-z0-9\.\-+_]+\.[a-z]+&quot;, address)
  print (emails)
  </code></pre>
  <p>But this returns nothing</p>
  <p>I tried extracting href tags:</p>
  <pre><code>soup = BeautifulSoup(address, 'lxml')
  for anchor in soup.find_all(&quot;a&quot;):
  print(anchor.attrs)
  </code></pre>
  <p>I got a close output :<br></p>
  <pre><code>{'href': 'tel:0241528201'}&lt;br&gt;
  {'href': 'mailto:ce.0491164Z@ac-nantes.fr'}&lt;br&gt;
  
  {'href': './etablissement/Allonnes/ECOLE-PRIMAIRE-PRIVEE-SAINT-DOUCELIN/0491164Z.html'}&lt;br&gt;
  </code></pre>
  <p>How can I extract these items one by one under different variables so that i can easily save it into a csv file?
  <br> Thanks in advance</p>