title: Perl5Util regex matching
body: <p>I am using Apache Velocity, to generate xml, which uses <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.apache.velocity/velocity/1.6.3/org/apache/velocity/app/event/implement/EscapeReference.java#EscapeReference.referenceInsert%28java.lang.String%2Cjava.lang.Object%29" rel="nofollow">Perl5Util</a> to match entities that need to be xml escaped. I am trying to come up with a regex that will match everything but the word "style". Based on the <a href="http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/package-summary.html" rel="nofollow">Perl5Util doc</a> I came up with </p>
  
  <pre><code>new Perl5Util.match("/(?!style)/", "style");
  </code></pre>
  
  <p>Unfortunately that seems to return true for "style" and any other words I try. Could anyone lend me a hand with figuring out a regex that would work?</p>
  
  <p>The Apache Velocity doc includes some <a href="http://click.apache.org/docs/velocity/developer-guide.html#Configuring_Event_Handlers" rel="nofollow">examples</a>, but all of those are for including terms, not excluding.</p>