Regexp question...

From: Date: Wed, 28 May 2003 06:47:40 +0000
Subject: Regexp question...
Groups: php.general 
Request: Send a blank email to php-general+get-149190@lists.php.net to get a copy of this message
OK, here is the regexp command I am trying to use: $split_filename = preg_split('/\./', $_FILES["userfile"]["name"], -1); However, when I do a count($split_filename) I don't get what I expect. For instance if the input is: abc.xyz.123 I get 2 from count, why doesn't preg_split put three elements in the array? It works since I'm actually looking for the last part of the filename. Thanks for any help. Andrew.

« previous php.general (#149190) next »