on 03-25-2008 8:30 AM
Hi
I need a regular expression in which i check for english characters only with all possible symbols also . but it should not recognize foreign languages.
i dont know whether it is regular exp, but i have solution.
Alphabets, digits and special symbols in ansi are ranges from 0 to 255, so we may proceed as follows,
for(int i=0;i<<String Name>.length();i++)
{
if(String.charAt(i) >= 0 && (String.cahrAt(i) <= 255)
//allow;
else
//not allow
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I need a regular expression in which i check for english characters only with all possible symbols also
[^0-9]
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.