Re: Help with preg_match_all()

From: Date: Mon, 01 Nov 2004 03:01:12 +0000
Subject: Re: Help with preg_match_all()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200801@lists.php.net to get a copy of this message
* Thus wrote Francisco Javier Escoppinichi Fernndez: > Hello people... > > I'm relatively a beginner with regular expressions, so I need a little > help here.. I hope you can help me... If you read the whole section @ http://php.net/pcre you'll be able to do this in your sleep. > > Ok, I have a HTML file with several tags like this: > {$base.username} > {$base.date} > {$blog.lastpost} > > And so on.. It's a kind of a template system... well... I need to > create a expression to get all the tags from the HTML with > preg_match_all() in order to have them in a array... So your looking from something that starts with '{' and continues while not a ')' ... /{([^}]*?)}/ Curt -- Quoth the Raven, "Nevermore."

« previous php.general (#200801) next »