Regex for YouTube video ID

Hi , i want video to display once i submit the URL in the " video Input " , i have added video and set the :

  • " Video ID" to : "video input value : extract with regex " ,
  • Regex Pattern : (?[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|[^"&?/ ]{11})
    It works fine with some YouTube URL but not all YouTube URL format , is there any Better Regex pattern can work to match or select YouTube ID ONLY

Thanks in advance

This topic was automatically closed after 70 days. New replies are no longer allowed.