Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Normally extractors get the
video_idof a url usingvideo_id = self._match_id(url)where
_VALID_URL = r'https?://(?:www\.)example\.com/v/(?P<id>\d.+)'.But have would one go about extracting multiple items from the url, e.g. if
But if one have multiple groups inside the
_VALID_URL, e.g._VALID_URL = r'https?://(?:www\.)example\.com/v/(?P<id>\d.+)/(?P<second_id>[^/?]+)'how would it be possible to get the
second_idfrom_VALID_URLinside e.g._real_extract? As far as I can see, there isn't any functions to match regex on_VALID_URLexcept_match_id.