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

Javascript – Regex to match words on specific lines

Given the following example from a class definition in ObjectScript: Include %sySystem Include (%sySystem, %soap, %Net.WebSocket) Class HS.Local.zimpl.fhirpro.UI.FileViewer Extends (HS.Local.zimpl.fhirpro.UI.Super, %CSP.Page) I need to match the individual words behind "Include" and the pattern must not match on any other line.…

VIEW QUESTION
Back To Top
Search