Re: Re: Regex guru needed

From: Date: Mon, 15 Nov 2004 08:32:51 +0000
Subject: Re: Re: Regex guru needed
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34385@lists.php.net to get a copy of this message
Kouber Saparev wrote:
$string = "(aaa bbb ccc ddd)"; $regex = "/\w+/"; preg_match_all($regex, $string, $matches); print_r($matches); You're right, but it's doing the same with:
$string = '!()<>aaa !!!! bbb ::;, ccc // ddd[{|#~'; I mean if we know in advance we have a list between parenthesis, then only, preg_match_all() or the same preg_split() can be used. In case, you need first to check that. Bye bertrand Gugger (toggg)

« previous php.pear.dev (#34385) next »