Currently, I am attempting to create a regular expression that can identify URLs like the following:
https://www.youtube.com/playlist?list=PLBOh8f9FoHHjOz0vGrD20WcTtJar-LOrw
However, I do not want it to match URLs such as:
https://www.youtube.com/watch?v=4jduuQh-Uho&list=PLBOh8f9FoHHjOz0vGrD20WcTtJar-LOrw&index=3
I attempted to create one that identifies if there is a list=
but no v=
, yet it seems to match both types of URLs.