UtilRegExPatternsYoutubeUrl Field

A pattern that matches a Youtube Url.

For Example:

https://www.youtube.com/watch?v=Hzmn4-vtl5M&feature=em-uploademail

http://www.youtube.com/attribution_link?a=Od7TH6HFkco&u=/watch?v%3DHzmn4-vtl5M%26feature%3Dem-uploademail

Definition

Namespace: DevCase.Core.DataProcessing.RegEx
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public const string YoutubeUrl = "(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|(attribution_link.+)?|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?"

Field Value

String

See Also