Where '$eachLine' is a line of HTML code the following command echo str_replace("<a href=\"", "", trim(stristr($eachLine, "<a href="))) . "\r\n"; give me this result: http://www.actsministrieschristianevangelism.org/christianliving/quiet_time_quotations_and_reflection_topics.html">here. I want to get rid of everything including and following the " What do I do next?