How to get the Youtube VideoId from Url in C# and VB.NET
To get the Youtube VideoId from an Url in C# and VB.NET you can use the following snippet. It matches these 18 type of Youtube Links (Sample Data): Sample Input…
All the Code Snippets and Samples you need
To get the Youtube VideoId from an Url in C# and VB.NET you can use the following snippet. It matches these 18 type of Youtube Links (Sample Data): Sample Input…
To get the VideoID of a youtube video using Regex you can use the following snippet. Sample Regex ^(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.[a-zA-Z]{1,3}\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\”‘>]+) This will match the Vl1tVxfFf1A in https://www.youtube.com/watch?v=Vl1tVxfFf1A. A more complex regex…