title: Extracting a value from a HTML string (PYTHON)
body: <p>I'm having some trouble extracting some data from this string:</p>
  
  <pre><code>&lt;input class="mail-address-address" id="mailAddress" readonly="readonly" type="text" value="THE_EMAIL_ADDRESS_HERE"/&gt;).
  </code></pre>
  
  <p>How could I store the <code>value=</code> into my own variable? I've thought about splitting but don't think you can split a whole word. Could you split at a certain char by <code>.count()</code> method? Thank you, hopefully I could get some help on this.
  Thanks</p>
  
  <p>EDIT:</p>
  
  <p>I'm trying to get the id by converting it to HTML since splinter did not seem to get the content in ID (it was just blank)</p>
  
  <pre><code>site = "https://10minutemail.com/10MinuteMail/index.html?dswid=9902"
  req = urllib2.Request(site, headers=hdr)
  page = urllib2.urlopen(req)
  content = page.read()
  soup = BeautifulSoup(content)
  address-address" id="mailAddress" readonly="readonly"&gt;')
  find = soup.find("class", {"id": "mailAddress"})
  findId = soup.find(id="mailAddress")
  </code></pre>
  
  <p>the variable findId prints this:</p>
  
  <pre><code>&lt;input class="mail-address-address" id="mailAddress" readonly="readonly" type="text" value="cblahblah@mvrht.com"/&gt;)
  </code></pre>
  
  <p>@Sidney</p>
  
  <pre><code>html_line= '''&lt;input class="mail-address-address" id="mailAddress" readonly="readonly" type="text" value="cblahblah@mvrht.com"/&gt;)'''
  input_value=html_line.split('value="',1)[1].rsplit('"',1)[0]
  print(input_value) 
  </code></pre>
  
  <p>This works fine except the domain name changes. ''' means I can't use my own variable (findId). Is there a work around for this?</p>