I need to read all text between <EDIT>and</EDIT>tags into a varable. How can I do this? It's a html page by the way. I have looked all over the net and haven't come up with much. Thanks for you help.
<?php $string = EDIT_TAGS_HERE; preg_match('/<EDIT>(.*?)<\/EDIT>/', $string, $matches); print_r($matches); ?> PHP:
if you plan on having more than one set of edit tags be sure to use preg_match_all instead of preg_match