Has anyone got a regex for vimeo video links to extract them from the paragraph for use in php? Cannot seem to find vimeo url suitable for last scheme
As far as I can tell, the scheme is just http://vimeo.com/A_NUMBER , so try http://(www\.)?vimeo\.com/(\d+) . If you do not need links for the http:// prefix, you can leave the entire bit http://(www\.) .
http://vimeo.com/A_NUMBER
http://(www\.)?vimeo\.com/(\d+)
http://
http://(www\.)
Be careful: URL scheme
http://vimeo.com/[SEVERAL_FOLDERS(opt.)]/[VIDEO_NUMBER]
eg:
http://vimeo.com/channels/staffpicks/48237094 http://vimeo.com/48237094
As you can see, it depends on which page the user copies the link to.
Is there something wrong with vimeo\.com/(\d)+ ? You need http://www. ?
vimeo\.com/(\d)+
http://www.
Itβs better to ask viemo about it because they know better, and if they change something, they will reflect it in their apis
Live example:
http://vimeo.com/api/oembed.json?url=http%3A//vimeo.com/76979871
API docs: http://developer.vimeo.com/apis/oembed
Answer inspired by this fooobar.com/questions/26428 / ...
Source: https://habr.com/ru/post/1339883/More articles:2d Score collision problem: no energy conservation - javaClicking a word in a UITextView - objective-chide image after a certain period of time - iosCould not find Log Publisher for project in CCNET - svnspring mvc default display handler - javaChange VisualState based on property value - windows-phone-7Python SVN binding in Windows Server 2008 x64 - pythonarrays against a list referencing a question - perlto get SET STATISTICS IO and SET STATISTICS TIME values ββthrough ADO.NET? - .netLocal sequence cannot be used in LINQ to SQL implementation - containsAll Articles