Hello, I want regular Expression for special character for validation. I have search in the google but I have not got sufficiant answer......!! So, can any one tell me..
If you're trying to remove/strip special characters, try this (removed everything but letters, numbers, and spaces)... function strip_special($str) { return preg_replace('/[^a-zA-Z0-9[:space:]]/', '', $str); } PHP: