Searching a file for text surrounded by brackets
| From: | Jamie Saunders | Date: | Wed, 16 Jul 2003 10:20:11 +0000 |
| Subject: | Searching a file for text surrounded by brackets | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-29276@lists.php.net to get a copy of this message | ||
Hi, I need a way of searching a file for text between two brackets, below
is an example of a couple of lines from the file I'm searching:
<tr><td><font size="2">{L_LOGIN}</font></td></tr>
<tr><td><font size="2">{L_LOGOUT}</font></td></tr>
So I'll need to search the above for text between the '{' and '}' brackets
and read each into an array.
--
Jamie Saunders
Media Architect
phpdev@mediacdcards.net