2000-01-01T10:00:00Z
その文字列から時間を取得したい文字列があります:10:00
誰でも NSRegularExpression を使用してそれを行う方法を教えてもらえますか
次のコードを試しましたが、機能しません (結果が返されません)
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"(\d{2}:\d{2})" options:NSRegularExpressionCaseInsensitive error:NULL];
NSString *newSearchString = [regex firstMatchInString:opening_time options:0 range:NSMakeRange(0, [opening_time length])];
どこopening_time
ですか"2000-01-01T10:00:00Z"