151 reputation
bio website linkedin.com/pub/parth-bhatt/…
location Baroda, Gujarat, India
age 26
visits member for 3 years, 2 months
seen Aug 14 '13 at 5:07

I am iPhone and iPad developer.

profile for Parth Bhatt on Stack Exchange, a network of free, community-driven Q&A sites


NSRegularExpression *reg = [NSRegularExpression regularExpressionWithPattern:@"(#[a-zA-Z0-9_-]+)" options:NSRegularExpressionCaseInsensitive error:nil];

NSString *stringData = @"This is Parth known as #parth and this is an awesome place. I am fan of #scganguly.";

int count = [reg numberOfMatchesInString:stringData options:0 range:NSMakeRange(0, [stringData length])];


   NSArray *array =  [reg matchesInString:stringData options:0 range:NSMakeRange(0, [stringData length])];
    NSMutableArray *stringArray = [[NSMutableArray alloc] init];
    for (NSTextCheckingResult *result in array) {
        NSString *stringFinal = [stringData substringWithRange:result.range];
        if(stringFinal != nil)
            [stringArray addObject:stringFinal];
    NSLog(@"stringArray: %@",stringArray);

For @user: @"(@[a-zA-Z0-9_]+)"

    NSLog(@"Request String: %@", requestString);

    NSData *requestData = [NSData dataWithBytes: [requestString UTF8String] length: [requestString length]];

    //    NSString *fileLoc = [[NSBundle mainBundle] pathForResource:@"url" ofType:@"plist" ];
    //    NSDictionary *fileContents = [[NSDictionary alloc] initWithContentsOfFile:fileLoc];
    //    NSString *urlLoc = [fileContents objectForKey:@"baseURL"];
    NSString *urlLoc = @"http://portal.abc.com/candidate/post-info";
    NSLog(@"URL is %@",urlLoc);
    NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:
                                    [NSURL URLWithString: urlLoc]];

    NSString *postLength = [NSString stringWithFormat:@"%d", [requestData length]];
    [request setHTTPMethod: @"POST"];
    [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
    [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
    [request setHTTPBody: requestData];


This user has not answered any questions
This user has not participated in any tags
This user has not asked any questions
Stack Overflow 11,215 rep 1990180
Personal Productivity 151 rep 4
Area 51 151 rep 1
Meta Stack Exchange 141 rep 6
Programmers 136 rep 2

0 Votes Cast

This user has not cast any votes