title: Regex to find static (non final) variables
body: <p>I am trying to do a search in my Eclipse (Java) workspace to find all instances of static variables that are not final.</p>
  
  <p>I tried various regexes but they do not result in any matches. Can someone suggest a regex that will match all lines containing <code>static</code> and not containing <code>final</code>, and not ending in a <code>{</code>?</p>
  
  <p>The last part about not ending with a <code>{</code> will eliminate static methods.</p>
  
  <p>An example:</p>
  
  <pre><code>public class FlagOffendingStatics {
    private static String shouldBeFlagged = "not ok";
    private static final String ok = "this is fine";
    public static void methodsAreOK() {
  
    }
  }
  </code></pre>