preg split question

From: Date: Thu, 27 Mar 2003 14:39:26 +0000
Subject: preg split question
Groups: php.general 
Request: Send a blank email to php-general+get-141224@lists.php.net to get a copy of this message
Hello i'd like to split Benutzer_CRA.php to get CRA but sometimes the files are called Benutzer_OVE_CRA.php and therefore the result schould OVE_CRA how cann i tell preg_split to split the string at the first occurence of _ and before .php BR/Torsten

« previous php.general (#141224) next »