title: How does bash recognize a link?
body: <p>In a bash script that captures a href link, how does bash know that TEXT is a link and not a typical string? Why at the end when $TEXT="www.google.com", TEXT is still a link? Can you do that with a file? For example having a 'Click me' that runs a scrip.</p>
  
  <pre><code>shopt -s nocasematch
  
  TEXT='&lt;a href="http://www.google.com/search/something/lulz/here2 i=!mfo1iu489fn1o2jlk21m4098mdoi"&gt;"test link"&lt;/a&gt;&lt;br&gt;'
  
  TEXT=${TEXT##*href=\"}
  TEXT=${TEXT%%\"*}
  TEXT=${TEXT##*//}
  TEXT=${TEXT%%/*}
  
  echo $TEXT
  </code></pre>