anyone can show me a codes for calculator which determines a space, a letters and symbols


for example:
Enter a equations:
1+2=3
1 + 3 = 3
1 + b = invalid character
1 + * = invalid character