On Thursday 22 February 2001 23:42, Simon Garner wrote:

> This should do the trick (untested!):
>
> <?
>     $contents = "<img src=ThisOneReallyNeedsToBeAllLowercase.gif
> alt=ThisOneReallyNeedsToBeAllLowercase.gif>";
>
>     $contents = preg_replace("/([-_a-zA-Z0-9]+)\.gif/e",
> "strtolower('\\1') . '.gif'", $contents);
> ?>

simpler that
"/([-_a-zA-Z0-9]+)\.gif/e"
is
"/([-\w]+)\.gif/e"

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.

- http://www.google.com/search?q=e

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to