Uppercase, lowercase, number in string
#9

Quote:
Originally Posted by Vince
View Post
You're somewhat vague in your first post. If you only need to check if the strings contains any combination of uppercase characters, lowercase characters and numbers, but not any other character, then this should suffice:
pawn Code:
noSpecialChars(string[])
{
    for(new i = strlen(string); i > 0; i--)
        if(!('A' <= string[i] <= 'Z') && !('a' <= string[i] <= 'z') && !('0' <= string[i] <= '9')) return false;

    return true;
}
I mean wow now thats something awesome ,exactly what i wanted. Thanks hella to you Mr.Vince! (Rep+6 Added)

Can you give me an explanatory output of the following code? And i want to know how exactly does it process (working) ?
Reply


Messages In This Thread
Uppercase, lowercase, number in string - by Wesley221 - 04.08.2012, 10:04
Re: Uppercase, lowercase, number in string - by Misiur - 04.08.2012, 10:34
Re: Uppercase, lowercase, number in string - by Ballu Miaa - 04.08.2012, 11:02
Re: Uppercase, lowercase, number in string - by leonardo1434 - 04.08.2012, 11:11
Re: Uppercase, lowercase, number in string - by Misiur - 04.08.2012, 11:16
Re: Uppercase, lowercase, number in string - by MicroD - 04.08.2012, 11:32
Re: Uppercase, lowercase, number in string - by leonardo1434 - 04.08.2012, 11:37
Re: Uppercase, lowercase, number in string - by Vince - 04.08.2012, 11:45
Re: Uppercase, lowercase, number in string - by Ballu Miaa - 04.08.2012, 13:04
Re: Uppercase, lowercase, number in string - by leonardo1434 - 04.08.2012, 13:35

Forum Jump:


Users browsing this thread: 1 Guest(s)