I have the following preg_replace:
$title = preg_replace('/[^\w\' -]/', '', trim($title));
$title = preg_replace('/ +/', ' ', $title);
It subsitutes all the nasty chars in the title with space, exception being the ' and - chars. I want to add the / and \ chars also to the exception list, how it's best to do it?
I have an ideea..but i wanna be sure, you guys are way better than me 🙂