what I want to do is use ereg() to get the text between some tags on an html document. for example<br><br><div id = "mytext">this is the text I want</div><br><br>How can I use ereg() to retrieve "this is the text I want"??<br><br>Thanks