$section_notes = preg_replace('/WWW.(.*?) /e', '"<a href=\"http://
www." . strtolower("$1") . "\" target=\"_blank\">http://www." .
strtolower("$1") . "</a>"', $section_notes);
For some reason I can't get it to work if I decare those items as
variables. They have to be inside the preg_replace as written. But,
it works now. Thanks for the help.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Nov 30, 2006, at 3:04 PM, Kevin Murphy wrote:
Well the problem would be then that the entire string would be
lower case, and I only can have the link as lower case. Is there a
way to apply strtolower into the preg_match?
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Nov 30, 2006, at 2:26 PM, Dave Goodchild wrote:
Why not use strtolower on the string after the replacements have
been made?
--
http://www.web-buddha.co.uk