skip to Main Content

Javascript – Wistia extract video id from url

I am trying to extract video id using regex. Here are some video url examples: http://fast.wistia.net/embed/iframe/26sk4lmiix https://support.wistia.com/medias/26sk4lmiix My regex: var rx = /https?://(.+)?(wistia.com|wi.st)/(medias|embed)/*/([^;?]+)/, _m = url.match(rx) if(_m && _m[4])return _m[4] else return false; Regiex is not quite correct and is…

VIEW QUESTION
Back To Top
Search