title: parsing a classname with Reg-Exp
body: <p>I have some troubles with reg exp. I want to check if a class name is "good".
  I want to parse these with reg exp.</p>
  
  <pre><code>if(ClassClass1
  theresNoClass
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>[A-Z][a-zA-Z]+
  </code></pre>
  
  <p>But it also said <code>atheresNoClass</code> is a good name, so I decided to check if any letters are on the left:</p>
  
  <pre><code>[^a-z][A-Z][a-zA-Z]+
  </code></pre>
  
  <p>But the '(' got through, I don't need it.</p>
  
  <p><strong>Good examples of class names:</strong></p>
  
  <ul>
  <li>Graphics2D</li>
  <li>SomeClass</li>
  <li>System</li>
  </ul>
  
  <p><strong>Bad examples:</strong></p>
  
  <ul>
  <li>if(Class </li>
  <li>(SomeClass</li>
  <li>noFunction</li>
  </ul>