Regular Expressions

From: Date: Tue, 06 Nov 2007 15:52:47 +0000
Subject: Regular Expressions
Groups: php.general 
Request: Send a blank email to php-general+get-264117@lists.php.net to get a copy of this message
I'm a mess in regular expressions and I make this code: $link = ereg_replace('ñ','n',$link); $link = ereg_replace('á','a',$link); $link = ereg_replace('é','e',$link); $link = ereg_replace('í','i',$link); $link = ereg_replace('ó','o',$link); $link = ereg_replace('ú','u',$link); I ask if is a way to make those lines into a single one but working as well as this piece. I'm thinking in increase those lines so will be wonderful if I can optimize the code. Este correo ha sido enviado desde el Politécnico de Informática "Carlos Marx" de Matanzas. "La gran batalla se librará en el campo de las ideas"

« previous php.general (#264117) next »