Help on preg_split

From: Date: Thu, 27 Mar 2003 05:05:03 +0000
Subject: Help on preg_split
Groups: php.general 
Request: Send a blank email to php-general+get-141172@lists.php.net to get a copy of this message
Hi! Could someboy please help me with this simple task (at least I though it would be simple): I need to split a string with two dates in into two datestrings, and there might be whatever between the dates, e.g. $datestring = "010101aaaaa020202", or $dateting = " 010101+++++++++020202 " Then I thought that $date = preg_split("/[\D]+/",trim($datestring)) whould do the job, but it didn't. Why? and how should it be? Many thanks in advance! br Jim

« previous php.general (#141172) next »