RE: [PHP-WIN] ereg_replace help wanted
| From: | George Pitcher | Date: | Thu, 30 Sep 2004 06:35:53 +0000 |
| Subject: | RE: [PHP-WIN] ereg_replace help wanted | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24674@lists.php.net to get a copy of this message | ||
Thanks to all who chipped in.
I'm going with John Asendorf's '$pages = ereg_replace ( "[^0-9cdilmvx,]" ,
"-" , $pages);' which works for me.
Tom wrote:
> But do you really want an "A" (etc.) to be considered a dash?
Yes, because it is not a valid pagerange character.
Cheers, and thanks for saving me from having to learn how that all works.
George in Oxford