如何从 URL IOS 9 获取 DailyMotion 视频 ID

How do I get the DailyMotion Video Id from the URL IOS 9

http://www.dailymotion.com/video/x3vfu7n_kashif-abbasi-take-class-of-zaeem-qadri_news 我需要从 dailymotion url 获取视频 ID。为此我需要正则表达式。谢谢

试试下面的正则表达式:

    NSString *strRegExp=@"/video/([^_]+)/";

    NSError *regexError = nil;
    NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:strRegExp options:NSRegularExpressionCaseInsensitive error:&regexError];

    if (regexError) {
        NSLog(@"regexError: %@", regexError);

    }