Allowing quotes in preg_replace, please help
Posted: Fri Jan 28, 2011 2:00 am
im using preg_replace to filter coming from a form.
i'd like to allow double quotes and single quotes could somebody help me out.
-This is what i have currently!
$t1 = preg_replace("/[^a-z0-9\/!?:,.;$><_ ]/", '', $title);
i'd like to allow double quotes and single quotes could somebody help me out.
-This is what i have currently!
$t1 = preg_replace("/[^a-z0-9\/!?:,.;$><_ ]/", '', $title);