note 31412 deleted from function.basename by alindeman

From: Date: Fri, 09 May 2003 22:13:08 +0000
Subject: note 31412 deleted from function.basename by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-47785@lists.php.net to get a copy of this message
...weird, but same effect :) $regex = "/[\/\\][0-9A-Za-z`:.~_'-]+[\\\|\/]/"; $x = "/home/frances/.achanzar/file.tar.gz"; $y = "Z:\progra~1\-mark\file.tar.gz"; $x = preg_replace($regex, "", $x); $y = preg_replace($regex, "", $y); echo $x."\n".$y;

« previous php.notes (#47785) next »