Find Jobs
Hire Freelancers

Create 4 Regular Expressions regx in PHP to Strip Media ID's from URLS

$10-30 USD

Cancelado
Publicado hace más de 8 años

$10-30 USD

Pagado a la entrega
I need a few regular expressions created that will Extract the Video or Media ID's from some Social Network URLS. The Urls will vary so you need to have a good understanding of regular expressions for PHP. Here is an example of a Regular expression inside an if statement that I am using to extract the Video ID from Youtube Videos: if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $linkurl, $match)) { $youtube_video_id = $match[1]; echo $youtube_video_id; } This Regular expression is capable of extracting the video ID from any of the following URL formats: [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] -It also works on the [login to view URL] URL with the same above options. -It will also pull the ID from the URL in an embed code (both iframe and object tags) The above expression will work if: 1) Url starts http or https 2) Video ID can be any length 3) Video ID May Have URL Parameters after it like "?param=test&whateveresle=something" I need 4 Expressions like this created for URLS from: Vimeo, Instagram, flickr, and Vine I have included a text file with all the possible URL formats I have found sorted by Website: Vimeo ----- 1)be http or https 2)Video ID can be any length 3)Video ID May Have URL Parameters after it like "?param=test&whateveresle=something" [login to view URL] [login to view URL] [login to view URL];byline=0&portrait=0 [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] Instagram --------- 1)be http or https 2)Video ID can be any length 3)Video ID May Have URL Parameters after it like "?param=test&whateveresle=something" [login to view URL] [login to view URL] [login to view URL] [login to view URL]://[login to view URL] flickr ------ 1)be http or https 2)Video ID can be any length 3)Photo ID May Have URL Parameters after it like "?param=test&whateveresle=something" [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL]@N08/ Vine ---- 1)be http or https 2)Video ID can be any length 3)Video ID May Have URL Parameters after it like "?param=test&whateveresle=something" [login to view URL] You can also look a discussion about the issue at the stackexchange URL below to see an example of what I need done. [login to view URL] This should be easy if you understand regular expressions. I do not so I need someone to do this for me. I need this asap, so please let me know.
ID del proyecto: 9108471

Información sobre el proyecto

7 propuestas
Proyecto remoto
Activo hace 8 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
7 freelancers están ofertando un promedio de $21 USD por este trabajo
Avatar del usuario
Hello! With 98% to 99% completion rate, 850+ successfully completed projects, and a 4.99 reputation (maximum possible, 5.0) (can be verified on my profile page https://www.freelancer.com/u/rajeshsonisl.html !!)... you can never go wrong choosing me :) I am available to get started on your project right away. I look forward to your reply. Thanks. Kind Regards, Rajesh Soni
$34 USD en 1 día
5,0 (933 comentarios)
8,5
8,5
Avatar del usuario
Hi ! i am a professional Regular Expression Expert and i can create all of your Regular Expressions in 1 hour. i m not a PHP developer so i cant help you use Regex in PHP but i can create you Regex in 1 hour as i have alot of Handon Experience in Regex Here is an example of Regex that i have made for you for extracting Vimeo URL http(?:s)?://(?:www.|player.)?vimeo.com/.+?\r\n
$15 USD en 1 día
5,0 (27 comentarios)
5,3
5,3
Avatar del usuario
Hi. I had a lot of experience with regular expressions so I can do the job quickly and efficiently. It shouldn't take longer than an hour to construct such expressions and test them.
$20 USD en 0 día
5,0 (24 comentarios)
4,6
4,6
Avatar del usuario
I will do it with in 2 hrs.
$25 USD en 0 día
4,8 (20 comentarios)
3,6
3,6
Avatar del usuario
That is asimple task... i can do that in no time and deliver it today. I have done similar projects before, and i have all tools for this
$15 USD en 1 día
4,6 (1 comentario)
2,4
2,4

Sobre este cliente

Bandera de CANADA
Hamilton, Canada
5,0
14
Forma de pago verificada
Miembro desde may 13, 2014

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.