Foro de elhacker.net

Programación => Desarrollo Web => Mensaje iniciado por: z3nth10n en 26 Octubre 2013, 21:44 pm



Título: Delimiter must not be alphanumeric or backslash
Publicado por: z3nth10n 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.


Título: Re: Delimiter must not be alphanumeric or backslash
Publicado por: #!drvy 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


Título: Re: Delimiter must not be alphanumeric or backslash
Publicado por: z3nth10n 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