June 16th, 2000, 04:00 PM
I need a way to have PHP look through a text string like...
"The site for the Library of Congress can be found at <A HREF="http://www.locweb.gov"" TARGET=_blank>http://www.locweb.gov"</A>
Find the URL in the string and process it to generate
"The site for the Library of Congress can be found at <a href='http://www.locweb.gov'>http://www.locweb.gov</a>"
I know this must be possible with a regular expression but I can't begin to figure out what it would look like. (It should obviously trigger on the "http://" and end when it finds a space but I'm not sure how to make that happen).
new media arts