note 85364 deleted from function.preg-split by danbrown

From: Date: Wed, 27 May 2009 13:48:08 +0000
Subject: note 85364 deleted from function.preg-split by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156062@lists.php.net to get a copy of this message
Note Submitter: merlinyoda at dotproject dot net ---- I response to the post of "harrismw at ids dot org dot au" below: it *is* just as simple as escaping characters! Characters the question mark ('?'), the dollar sign ('$') and all types of "braces" ('(', ')', '{', '}', '[', ']') have special meaning in regular expressions. As noted in the manual above, if you don't need the power and flexibility that regular expressions provide (i.e. you are looking to split on a specific literal string) then you are better off using functions like explode().

« previous php.notes (#156062) next »