I have a input string when user enter data into the string then find out the string contains some specified (!@#$%) special characters are found or not. The following string values output like
string str="Mn@"; --> true string str="m@*"; --> false string str="@Mn"; --> true string str="Mn&"; --> false string str="@"; --> true string str="M"; --> false string str="*"; --> false string str=" "; --> false string str=" Mn"; --> false string str="M *"; --> false string str="m@ "; --> false