elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Rompecabezas de Bitcoin, Medio millón USD en premios


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web (Moderador: #!drvy)
| | |-+  Delimiter must not be alphanumeric or backslash
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Delimiter must not be alphanumeric or backslash  (Leído 2,489 veces)
z3nth10n


Desconectado Desconectado

Mensajes: 1.583


"Jack of all trades, master of none." - Zenthion


Ver Perfil WWW
Delimiter must not be alphanumeric or backslash
« en: 26 Octubre 2013, 21:44 pm »

Hola! Esto es rarísimo, tengo un preg_match bien hecho:

Código
  1. $Id = preg_match($_POST['del_link'], "/\d+(?=[_])$/");
  2. $Fecha = preg_match($_POST['del_link'], "/\d+$/");

Y me da este error:

Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/nexuspla/public_html/test.php on line 56

Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/nexuspla/public_html/test.php on line 57

No se porqué! :/

Un saludo.


En línea


Interesados hablad por Discord.
#!drvy
Moderador
***
Desconectado Desconectado

Mensajes: 5.850



Ver Perfil WWW
Re: Delimiter must not be alphanumeric or backslash
« Respuesta #1 en: 27 Octubre 2013, 01:42 am »

 :¬¬

http://php.net/manual/es/function.preg-match.php

Código
  1. $Id = preg_match("/\d+(?=[_])$/",$_POST['del_link']);

Bien hecho dices? xD

Saludos


En línea

z3nth10n


Desconectado Desconectado

Mensajes: 1.583


"Jack of all trades, master of none." - Zenthion


Ver Perfil WWW
Re: Delimiter must not be alphanumeric or backslash
« Respuesta #2 en: 27 Octubre 2013, 02:03 am »

Puto Sublime text, siempre me lia los fields... Que ascazo, y como leo por encima todo, pues pasa lo que pasa, gracias Drvy... :P
En línea


Interesados hablad por Discord.
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
backslash delante de cada comilla y doble comilla, seguro?
Nivel Web
Erfiug 5 3,301 Último mensaje 18 Julio 2010, 03:47 am
por Erfiug
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines