my string is like 
:

```
NSString * string = @"Had a #great#ftr time at the ####party @last ?night.";
NSError * error = nil;

NSRegularExpression* regex = [NSRegularExpression regularExpressionWithPattern:@"((#.+?\\b)|(.+?(?=#|$)))"
                                                                       options:0
                                                                         error:&error];
NSArray * matches = [regex matchesInString:string options:0 range:NSMakeRange(0, [string length])];
for (NSTextCheckingResult* match in matches ) {
    NSLog(@"%@", [string substringWithRange:[match range]]);
}

```

**output is :**

Had a 
"#great"
"#ftr"
time at the 
"####"
party @last ?night.

And i need :

output is :

Had a 
 "#great "
"#ftr"
time at the 
"##"
"#party @last ?night."

in short i need to create hash tag from this string.