Re: Preg_match - Find URL and convert to lower case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, November 30, 2006 5: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?

Why not use lower(link) in SQL to get the link out in the first place?

Also, the domain part cannot be case-sensitive, so you needn't worry
about that part.

For the 10% that don't work, a quick check with common variants on
capitalization might help to fix those up.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux