|
Posted by John Dunlop on 10/19/06 15:35
carrajo:
> I want to remove everything from a string except for Numbers,Lettters
> and Hypens. Can't get it working, can anyone help?
'letters' means A-Z? or other ones too?
'numbers' means 0-9?
(untested)
preg_replace('/[^0-9a-z-]+/i','',$subject)
--
Jock
Navigation:
[Reply to this message]
|