Re: Preg_match - Find URL and convert to lower case
| From: | Richard Lynch | Date: | Fri, 01 Dec 2006 21:56:28 +0000 |
| Subject: | Re: Preg_match - Find URL and convert to lower case | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245433@lists.php.net to get a copy of this message | ||
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?