title: Checking BASH strings in while loops for single quotes?
body: <p>Looking to check if a string doesn't contain single quotes in the following syntax, 'text' (although it could also be 'text','text','text') but haven't been able to escape the quotes properly as to allow the opening of a while loop. 
  Code: </p>
  
  <pre><code>while [[ -z "$projects" ]] || [[ "$projects" =~ *"\'" ]]; do
      &lt;reprompt user, read var, and reset variable&gt;
  done
  </code></pre>
  
  <p>The above is the best I've dreamt up, but it only looks for an ending ', and doesn't even work properly at that as testing with "a" does not result in entering the loop. How should I be testing for badly formatted user strings when single-quotes come into play?</p>