Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 23:42, Simon Garner wrote: > This should do the trick (untested!): > > $contents = " alt=ThisOneReallyNeedsToBeAllLowercase.gif>"; > > $contents = preg_replace("/([-_a-zA-Z0-9]+)\.gif/e", > "strtolower('\\1') . '.gif'", $contents); > ?> simpler that "/([-_a-

Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Simon Garner
From: "Ian LeBlanc" <[EMAIL PROTECTED]> > > I am working on a site that has over 1000 pages and all the images need to > be made lower case in the HTML. > Here is what I have so far. Please someone tell me what I am doing wrong. > > > $contents=" alt=ThisOneReallyNeedsToBeAllLowercase.gif>"; > >