how handle error in NSPredicate
<p>when i try to match regular expression for Data . sometime application crashes with error</p>

<p>here is error description </p>

<p>'Can't do regex matching, reason: Can't open pattern U_REGEX_INVALID_RANGE (string Ertyu, pattern [a-Z], case 0, canon 0)'</p>

<p>here is my code</p>

<pre><code> - (BOOL)isValidateString:(NSString *)inString ForRE:(NSString *)inRE {
BOOL isValidate=NO;
NSPredicate *thePredicate= [NSPredicate predicateWithFormat:@"SELF MATCHES %@", inRE]; 
isValidate= [thePredicate evaluateWithObject:inString];
return isValidate;
</code></pre>

<p>}</p>

<p>and in this method RE is getting from server.</p>
