title: Java regexp to force case in search
body: <p>I'm using a PDF reader, iAnnotate, that allows one to search a document using <code>java.util.regex.Pattern</code> regexps.  Unfortunately, iAnnotate ignores case in all searches.  This happens even if you use an expression like <code>[A]</code> (it also finds "a"), and even if you specify the character in unicode (<code>\u0041</code> means "A", but iAnnotate also finds "a").</p>
  
  <p>Java regexps are not designed to ignore case by default, and I don't see any way to use them to override ignore-case behavior in the <a href="https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html" rel="nofollow noreferrer">javadoc</a>, but maybe there's something I'm not thinking of.</p>
  
  <p>Any suggestions for possible regexp tricks to force a regexp to be interpreted with a specific case?  I know that this is strictly speaking an iAnnotate question, but I am interested in possible <code>Pattern</code> regexp solutions.</p>