PDA

View Full Version : Regex Help



sn1per
04-23-2008, 09:02 AM
$new_string = preg_replace("/[^a-zA-Z0-9-\/ns]/", "", $string);

I want to keep spaces and line feeds to, how do i fix this regex, php.net isnt helpful to this granularity .