i am a regular expression newbie. I have a working code using nsregularexpression. i am modifying it a little.
__nameRegularExpression = [[NSRegularExpression alloc] initWithPattern:@"^\\w+" options:NSRegularExpressionCaseInsensitive error:nil];
@"^\w+" what does it refer to ? does it convert first word to capital ?
I have a \r\n in first line of the text. i need to get NSRange till that and i dont want to change it to caps.
please suggest solutions.