Re: Replace illegal filename chars???

From: Date: Thu, 24 Oct 2002 05:15:07 +0000
Subject: Re: Replace illegal filename chars???
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-121204@lists.php.net to get a copy of this message
Thanks, I found that much out. I haven't worked with regular expressions before and am having trouble figuring out what expression to use for this. Thanks! Shawn "Kevin Stone" <kevin@helpelf.com> wrote in message news:09ec01c27ad1$ad282cc0$6601a8c0@kevin... > I believe you meant, ereg_replace(); > -Kevin > > ----- Original Message ----- > From: "Rick Emery" <remery@emeryloftus.com> > To: <php-general@lists.php.net> > Sent: Wednesday, October 23, 2002 1:57 PM > Subject: Fw: [PHP] Replace illegal filename chars??? > > > > regex_replace() > > This was a discussion item yesterday. > > ----- Original Message ----- > > From: "Shawn McKenzie" <nospam@mckenzies.net> > > To: <> > > Sent: Wednesday, October 23, 2002 2:40 PM > > Subject: [PHP] Replace illegal filename chars??? > > > > > > Anyone have a good way to remove from a string all characters and spaces > > that are illegal in a filename??? > > > > $string = "What's up Doc?"; > > > > I need: > > > > $filename = "whatsupdoc"; > > > > TIA > > -Shawn > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > >

« previous php.general (#121204) next »