Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/02/2010, 23:39
Avatar de camsworksinc
camsworksinc
 
Fecha de Ingreso: julio-2008
Ubicación: Queretaro
Mensajes: 261
Antigüedad: 15 años, 9 meses
Puntos: 11
Respuesta: funcion eregi

Encontre un comentario sobre esto:
Cita:
As for ereg to preg conversions, you only need to know a couple things.

In the preg functions, all your patterns have to be delimited. So for ereg_match("abc", $string) the conversion would be preg_match("/abc/", $string). If your pattern contains a forward slash, you may use any character not present in the pattern as a delimiter.

For eregi, you will need to make use of the pattern modifiers of perl-compatible expressions. eregi_match("abc", $string) becomes preg_match("/abc/i", $string)

preg is better, you'll like it more when you start using the modifiers and other advanced features.
La fuente:http://forums.devshed.com/php-develo...eg-503512.html