regular expression

From: Date: Fri, 02 Jul 2004 18:56:29 +0000
Subject: regular expression
Groups: php.general 
Request: Send a blank email to php-general+get-189567@lists.php.net to get a copy of this message
Could someone help me with a regular expression? I am not very good at them. I want to find the following pattern inside a file: [%string%] Then extract the string portion to store in array. I would next like to replace those patterns with html code. That's right you guessed it a template engine type program. I thought it was"/\[\%[a-z]\%\]" but I guess I am wrong. Then what function do I use to extract. Thank you, George

« previous php.general (#189567) next »