title: Why isn't this regular expression test working?
body: <p>I have this</p>
  
  <pre><code>echo $line
  Thisisaline.
  </code></pre>
  
  <p>I was wondering why is this not working:</p>
  
  <pre><code>if [[ "$line" =~ "[a-zA-Z]+\.$" ]] ; then echo "hello"; fi
  </code></pre>
  
  <p>Above regex gives no output.</p>