Hy list, I'm currently writing an application to edit and send our customer news- letter. The interface and the template engine which will put the content into text or html templates is ready and working. Now I'd love to extend the system to automatically generate content lists.
The html newsletter contains headers from <h1> to <h3>. Now I'd like to parse through the text and get all occurences of <h1>...</h1> and <h2>...</h2> add a <a name="..."></a> tag before each of them. How could this be done best? Would a regexp help to get all these entries? And how would I add the <a name...> tag? Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php