EvolMonster
Programmer
hiya Guys
For some reason, I can't for the life of me work out how to check for certain characters in a string.
I have to check the email addresses that i'm storing, only have letters or numbers (and an @ symbol).
So far I am looping through each character, and I need to check that each character is valid.
I thought that I could use something like [0-9], but that doesn't seem to work.
Any ideas?
Thanks
DB
For some reason, I can't for the life of me work out how to check for certain characters in a string.
I have to check the email addresses that i'm storing, only have letters or numbers (and an @ symbol).
So far I am looping through each character, and I need to check that each character is valid.
I thought that I could use something like [0-9], but that doesn't seem to work.
Any ideas?
Thanks
DB