title: Matching NSPredicate With String
body: <p>I have this predicate which works somewhat well.</p>
  
  <p><code>NSPredicate *filter = [NSPredicate predicateWithFormat:@"code contains[cd] %@", predicateFilter];</code></p>
  
  <p>So if <code>predicateFilter</code> is 112, this finds all <code>code</code> that have <code>112</code> in it.  I want it to find all code that BEGIN with <code>112</code> instead.</p>
  
  <p>Edit:</p>
  
  <p>I have this predicate, how can I make it so its codes that are between code that begins with predicateFilterStart and code that begins with PredicateFilterEnd?</p>
  
  <pre><code>NSPredicate *filterPredicate = [NSPredicate predicateWithFormat:@"ANY code BETWEEN %@",
                       [NSArray arrayWithObjects: 
                        [NSExpression expressionForConstantValue: [NSNumber numberWithFloat: [self.predicateFilterStart floatValue]]],
                        [NSExpression expressionForConstantValue: [NSNumber numberWithFloat: [self.predicateFilterEnd floatValue]]],
                        nil]];
  </code></pre>