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

Reply via email to