VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Removes special character

by Neerja (1 Submission)
Category: String Manipulation
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Wed 1st August 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Removes special character

API Declarations



</script>

Rate Removes special character



function checkforspecialcharacter(a)
{
var ab=a;
for(x=0;x<ab.length;x++)
{
a=ab.charAt(x);
if((a=="!") || (a=="@") || (a=="#") || (a=="$") || (a=="%") || (a=="^") || (a=="&") || (a=="*") || (a=="("))
{
return true;
}
else if ((a==":") || (a==";") || (a=='"') || (a=="'") || (a=="<") || (a==",") || (a==">") || (a=="?") || (a=="/")||(a=="`"))
{
return true;
}
else if((a==="{") || (a==="}") || (a==")") || (a=="_") || (a==".") || (a==="=") || (a=="|") || (a=='[')|| (a=='~')||(a==']'))
{
return true;
}

}

return false;
}

</script>

Download this snippet    Add to My Saved Code

Removes special character Comments

No comments have been posted about Removes special character. Why not be the first to post a comment about Removes special character.

Post your comment

Subject:
Message:
0/1000 characters