title: Python 3: Regex doesn't work when read text from file
body: <p>The following is my information:</p>
  
  <p>The input:</p>
  
  <pre><code> \"button\" \"button\" href=\"#\"   data-id=\"11111111111\"  \"button\" \"button\" href=\"#\"   data-id=\"222222222222\"
       \"button\" \"button\" href=\"#\"  
  </code></pre>
  
  <p>The output I'd like:</p>
  
  <pre><code>11111111111
  222222222222
  </code></pre>
  
  <p>My 1st code which worked well: </p>
  
  <pre><code>text = 'data-id=\"11111111111 \" data-id=\"222222222222\" '
  c = re.findall('data-id=\\"(.*?)\\"', text)
  </code></pre>
  
  <p>My 2nd code which doesn't work. It show nothing</p>
  
  <pre><code>with open("E:/test.txt","r") as f:
      text = f.readline()
  
  c = re.findall('data-id=\\"(.*?)\\"', text)
  </code></pre>
  
  <p>Why my secondary code doesn't work. Please help me fix it. I highly appreciate you. Thank you :)</p>