How can i check, in a string, so that the only a string can contain, "." and ":", and "a-z/A-Z", and "0-9" are allowed, and the strings with other characters such as !@#$%^&*(){};'"/?<>|¢£¤¥ and so on are ignored?