Welcome to WebmasterWorld Guest from 184.108.40.206
now, if there happens to be a url in the text, my page automatically creates a link, but if the original link contains some uppercase characters I'm in a bit of a pickle, aren't I?
Does anyone happen to have a magic line or two, to make strtolower() ignore URLs?
Thanks in advance :)
preg_match_all(" http.*? ", $string, $upper_case_matches);
preg_match_all(" http.*? ", $string, $lower_case_matches);
preg_replace($lower_case_matches, $upper_case_matches, $newstring);
As I say, that's untested but might fire off a few ideas for you...
jatar_k, unfortunately the urls will not all have the same format, they'll likely be all over the place!
and toadhall, welcome back :) and correct me if i'm wrong but... i think if the url contains a filename at the end it will matter very much that the correct case is used.
thanks again everyone
I'm going to keep trying but if anyone happens to know the answer I'd sure appreciate it :)