note 45311 deleted from function.split by tomsommer

From: Date: Wed, 01 Sep 2004 22:01:36 +0000
Subject: note 45311 deleted from function.split by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75906@lists.php.net to get a copy of this message
Note Submitter: gsokol at elka dot pw dot edu dot pl ---- Yeah, we can definately draw some conclusions regarding this function: When you get a warning with "REG_EMPTY" it's probably a split() (or ereg(), ereg_replace) function with special regex characters supplied, like the pipe (|) or parantheses. It's safe to use explode() since it does not require a regex, but a normal string. split("|",....) will not work split("\|",....) on the contrary. Well, for those who are getting delusions after hours spent composing regular expressions with little effect, a syntax checker: http://www.bitesizeinc.net/demo.regexp.html

« previous php.notes (#75906) next »