Re: Replacing chars l ike: º OR ¿
| From: | Alexander Skwar | Date: | Mon, 18 Mar 2002 17:32:45 +0000 |
| Subject: | Re: Replacing chars l ike: º OR ¿ | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88955@lists.php.net to get a copy of this message | ||
»andy« sagte am 2002-03-18 um 17:00:16 +0100 :
> so whats the difference between yours and :
> $filename = ereg_replace ("[^a-z^0-9^/.^=^/-]", "", $filename);
You've got quite some ^ to much in there, I'd think. If I understand it
correctly, you'd also not remove the ^ character, because you've mentioned
this char quite sume times. The ^ has only a special meaning, if it's
the 1st character in a [....] group.
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.iso-top.de | Jabber:
askwar@charente.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 1 day 6 hours 26 minutes