Put text matching regex into array?

From: Date: Tue, 17 Dec 2002 01:05:13 +0000
Subject: Put text matching regex into array?
Groups: php.general 
Request: Send a blank email to php-general+get-128491@lists.php.net to get a copy of this message
Is there a way to put each part of a string matching a regex into an array? Example: $string = "-----_-_--- --_-_-- random text here-_"; $array = regextoarray($string,"[-_]{1,}"); //Produces array of "-----_-_---","--_-_--","-_" -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#128491) next »