Validating string

Hello.
My problem:
"Do simlple validation of data entered into a
Book; for example, accept ISBNs only of the form n-n-n-x where n is an
integer and x is a digit or a letter."
So I just need to check every char in the string. Right? Do I need to use tokens or anything else?
Also, what do I do if let's say I need to read grades in bad format?
Something like: "5 1/2", "5,57" and so on.
Topic archived. No new replies allowed.