cancel
Showing results for 
Search instead for 
Did you mean: 

Regular expression

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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
}

Former Member
0 Kudos

Hi,

I need a regular expression in which i check for english characters only with all possible symbols also


[^0-9] 

Regards

Ayyapparaj