Re: [PHP] keeping the dot

2002-03-04 Thread Erik Price
On Monday, March 4, 2002, at 10:50 AM, Erik Price wrote: > I thought that in this example (in this thread) the dot was being used > inside of a character class -- and that it does not need to be escaped > when it is inside of a character class (wouldn't make sense for "match > any character"

Re: [PHP] keeping the dot

2002-03-04 Thread Erik Price
On Monday, March 4, 2002, at 05:28 AM, bvr wrote: > To match the dot character (.) you should use escape it like this: \. > Otherwise the dot will match any character for it's a 'wildcard' and > the result of your replace will be empty. I thought that in this example (in this thread) the dot

Re: [PHP] keeping the dot

2002-03-04 Thread Websitecd
I did and do, but the manual some times does cover small things list this. I wish they had a "by example" book for PHP. Thanks for the help. Regards, Joseph A. Bannon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] keeping the dot

2002-03-04 Thread bvr
I think he was trying to say you should take a look at the manual regarding regular expressions. Once you get to the part that explains what [^ ] actually does you see how obvious the answer is. However, the synical reply from LuC isn't correct. To match the dot character (.) you should use

RE: [PHP] keeping the dot

2002-03-04 Thread Niklas Lampén
Don't don't don't me.. ehehehehee... %P Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 4. maaliskuuta 2002 12:20 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] keeping the dot Don't don't me. Regards,

Re: [PHP] keeping the dot

2002-03-04 Thread Websitecd
Don't don't me. Regards, Joseph A. Bannon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] keeping the dot

2002-03-04 Thread Edward van Bilderbeek - Bean IT
> > Try thinking? > > Don't be a jerk. > Don't be a programmer... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] keeping the dot

2002-03-04 Thread Websitecd
> Try thinking? Don't be a jerk. Regards, Joseph A. Bannon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] keeping the dot

2002-03-04 Thread LuC .
Try thinking :? :? Just add a dot. $filename = ereg_replace("[^a-zA-Z0-9.]", "",$filename); = I have a file that is being uploaded, but I need to remove all the characters in the filename except letters, numbers, and the '.' (dot). Example would be 'where_i_go.

[PHP] keeping the dot

2002-03-04 Thread Websitecd
I have a file that is being uploaded, but I need to remove all the characters in the filename except letters, numbers, and the '.' (dot). Example would be 'where_i_go.mp3' removing the '_' to get 'whereigo.mp3'. Below is what I have to remove the none letters and numbers, but it also takes away