Skip to main content
added 37 characters in body
Source Link

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 

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="@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 

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 
added 31 characters in body
Source Link

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 str1="Mn@";str="Mn@"; --> true string str2="@Mn";str="@Mn"; --> true string str3="Mn&";str="Mn&"; --> false string str4="@";str="@"; --> true string str5="M";str="M"; --> false string str6="*";str="*"; --> false string str=" "; --> false string str=" Mn";  --> false string str="M *"; --> false string str="m@ "; --> false  

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 str1="Mn@"; --> true string str2="@Mn"; --> true string str3="Mn&"; --> false string str4="@"; --> true string str5="M"; --> false string str6="*"; --> false 

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="@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  
Source Link

How to check given string contains some specified special characters exists or not in javascript?

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 str1="Mn@"; --> true string str2="@Mn"; --> true string str3="Mn&"; --> false string str4="@"; --> true string str5="M"; --> false string str6="*"; --> false