title: Match regular expression with quotes inside?
body: <p>I have a file that needs to be read using regular expressions. The string can basically include anything (upper case, lower case, spaces, symbols, etc) so long as the line is no more than 60 characters. The method I tried works for most strings in the file, however, I need to be able to allow quotation marks as well, which is where I'm getting stuck. Here's what I've tried so far.</p>
  
  <pre><code>    else if (data.matches("[A-Za-z0-9 ,.?!%&amp;()@$-_:;\\\"]+$")
              &amp;&amp; !label.equals("") &amp;&amp; prompt.equals("") &amp;&amp; data.length() &lt;= 60)
          {
              prompt = data;
          }
  </code></pre>
  
  <p>It reads everything else in fine, except the following string</p>
  
  <pre><code>    Yes, but an error is displayed, “Fuser out.”
  </code></pre>
  
  <p>Don't ask about the spelling, that was what was in the sample file I was given. </p>
  
  <p>Thanks for any help, hopefully I'll get a response before I leave the laundromat, since I'm on Long Island and have no power or internet at home thanks to the hurricane. </p>