title: Listing Files in Bash using Regex
body: <p>I have a case where I need to find/list files in certain directory in Bash using Regex.</p>
  
  <pre><code>  myRegex="MYFILE[0-9]{15}"
    if [[ `ls` =~ "$myRegex" ]]
    then
        echo "Matching File found"
    else
        echo "No Matching File found"
    fi
  </code></pre>
  
  <p>eventhough I have files matching this regex in the directory, it still gives "No matching file found" error.</p>
  
  <p>Thanks for answer in advance</p>