Is it possible to check a string with a sleeping constraint without having to write a special class for it? For example, if I just want to check whether a given String is an email, can this be checked as a one-time test without writing a full class and checking this restriction on a specific property of the class?
source
share