Find Jobs
Hire Freelancers

BBCode Image preg_replace

£10-20 GBP

Cerrado
Publicado hace alrededor de 10 años

£10-20 GBP

Pagado a la entrega
Comments on my site are in BBCode (example: [b]text[/b]), which is converted to HTML. The preg_replace I use for images needs adjusting. Currently it changes [img][login to view URL][/img] to <img src="[login to view URL]" /> . I need the preg_replace to check the image BBCode has a valid image file type (.jpg, .png, .gif, .jpeg). Here is the current PHP code: [login to view URL]
ID del proyecto: 5570248

Información sobre el proyecto

12 propuestas
Proyecto remoto
Activo hace 10 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
12 freelancers están ofertando un promedio de £19 GBP por este trabajo
Avatar del usuario
I am an expert in PHP and willing to deliver the project to your specifications and needs .
£19 GBP en 1 día
4,8 (97 comentarios)
7,1
7,1
Avatar del usuario
Hi, i can do this right now and done it fast, exactly what you want. Please hire me now. Thank you ! .
£20 GBP en 1 día
4,9 (246 comentarios)
6,2
6,2
Avatar del usuario
Hi! So just the valid images (files with the extensions you've enumerated) must be touched by that replace. OK. Your regexp is pretty complicated. Still, it can be worked on it. But: would you also like a clearer version of it? If so, just tell me what restrictions related to these image files YOU want to be imposed. For instance this: (?:\s|\;|\)|\]|\[|\{|\}|,|\"|'|\<|$|\.\s) can be written in a more clearer way. But it that part needed? So what exactly you want to check the regexp? (not only the extension) Thanks, Anca
£23 GBP en 2 días
5,0 (107 comentarios)
5,2
5,2
Avatar del usuario
We will have to divide code into two parts. First part extracts file type and compares it to valid options, and second part that does what your current code does. S.
£23 GBP en 1 día
5,0 (4 comentarios)
5,2
5,2
Avatar del usuario
Hello There I think i can help you out to achieve this stuff. However needs to consult with u once .. Hoping for ur positive reply thanks
£18 GBP en 1 día
5,0 (9 comentarios)
4,0
4,0
Avatar del usuario
A proposal has not yet been provided
£19 GBP en 3 días
5,0 (2 comentarios)
3,0
3,0
Avatar del usuario
Hi, I am a recent graduate with a degree in Computer Science. You'd just like the regex augmented to only replace img tags that contain a valid image type? I can have this for you tomorrow afternoon. If you have any further questions please don't hesitate to contact me, Tally
£15 GBP en 1 día
4,9 (3 comentarios)
2,1
2,1
Avatar del usuario
A proposal has not yet been provided
£18 GBP en 1 día
5,0 (1 comentario)
0,4
0,4
Avatar del usuario
Brother, I am currently working on phpBB. I am experienced on BBcode, smilies, posting etc. To see my projects please see my profile. Before this code you use, I have to write a program that will extract the file extension. It is very simple. The string after last dot is extension. Then if else check for known file type. It is very easy to me. I can do this within 1 day. You can award me. Also before awarding you can PM me for more details. Thank you brother...........
£16 GBP en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED KINGDOM
Gresham, United Kingdom
4,7
14
Forma de pago verificada
Miembro desde mar 16, 2011

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.