Ok heres the situation, I have a string like this

$this->_item["title"]  = "28.09.02 - Some silly Text (First) (Second)";

Im trying to do a preg_match on it to check it to make sure its in a certian
format. Heres my preg_match

$this->_item["title"], $matches);
list($all, $one, $two, $three, $four, $five) = $matches;

What Im getting returned in this

$one = 28
$two = 09
$three = 02
$four = Some silly Text
$five = First) (Second

What I want is

$four = Some silly Text (First)
$five = Second

Can anyone see where Im going wrong? The match may be really crude, Im still
pretty new to regular expressions. But it works just fine as long as there
is only one set of ().

Chris N.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to