title: Equivalent of Java's Matcher.lookingAt() in Objective C
body: <p>I am porting a framework from Java to Objective C which heavily depends on regular expressions. Unfortunately the Java regular expressions API is a lot different from the Objective C API. </p>
  
  <p>I am trying to use the <strong>NSRegularExpression</strong> class to evaluate the regular expressions. In Java this is completely different: you have to use the Pattern and Matcher classes.</p>
  
  <p>There is something I can't figure out (among other things). What is the equivalent of Matcher.lookingAt() in Objective C? To put it in code. What would be the Objective C translation of the following code?</p>
  
  <pre><code>Pattern pattern = Pattern.compile("[aZ]");
  boolean lookingAt = pattern.matcher("abc").lookingAt();
  </code></pre>
  
  <p>Thanks to anyone who knows! (btw the above example assigns true to the lookingAt boolean)</p>