preg_match_all question to table_of_contents UDT
Posted: Sat Aug 04, 2007 2:03 pm
Hi!
I edited the table_of_contents UDT and it works but only if the only attribute is name or id. if i add a class attribute, it doesn't work again. Can anybody help me in editing the function so that whatever other attribute is there, the function will select the correct tag (here: ) and the attribute id or name?
preg_match_all("/(.*)/i", $page_contents, $match);
http://wiki.cmsmadesimple.org/index.php ... f_contents
Maybe here, but i have not yet tried many examples:
http://de.php.net/manual/en/function.preg-match-all.php
I edited the table_of_contents UDT and it works but only if the only attribute is name or id. if i add a class attribute, it doesn't work again. Can anybody help me in editing the function so that whatever other attribute is there, the function will select the correct tag (here: ) and the attribute id or name?
preg_match_all("/(.*)/i", $page_contents, $match);
http://wiki.cmsmadesimple.org/index.php ... f_contents
Maybe here, but i have not yet tried many examples:
http://de.php.net/manual/en/function.preg-match-all.php