RE: ereg_replace help wanted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux