I've been having difficulty figuring out how to replace the following:
<!--place figure $i here-->
with
<img src="../test/$figure">
Also do you know of a good resource for learning regex?
Thank you, Elizabeth
eregi_replace("<!--place figure ([>]*) here-->","<img src=\"\1\">",$text);