title: How to match a string that does not end in a certain substring?
body: <p>how can I write regular expression that dose not contain some string at the end.
  in my project,all classes that their names dont end with some string such as "controller" and "map" should  inherit from a base class. how can I do this using regular expression ?</p>
  
  <hr>
  
  <p>but using both </p>
  
  <pre><code>public*.class[a-zA-Z]*(?&lt;!controller|map)$ 
  public*.class*.(?&lt;!controller)$ 
  </code></pre>
  
  <p>there isnt any match case!!! </p>