I have a Youtube url as an NSString or Swift String, but I need to extract the video id that is displayed in the url. I found many tutorials on how to do this in php or and other web-based programming languages, but none in Objective-C or Swift for Apple platforms...
I'm looking for a method that asks for an NSString url as the parameter and returns the video id as another NSString...