I need to check a password is "sensible". One of the checks is that it does not contain daft characters or spaces.
Could somebody point me in the right direction of something that will return true if the password contains only A-Z a-z 0-9 and false if it contains anything else including a space.