[eluser]cmh24[/eluser]
I found a solution. Inside the form validation library I found the regex_match method, which is not documented in the userguide.
So to check for values 1,2,3 I just use regex_match[/[123]/]. It works.
But now I still do not know how to check for full strings. For example female and male (see my first post).
I used something like regex_match[/["male", "female"]/], which did not work.
edit: Now, I just changed the type of brackets, and at least it is partly working.
I used: regex_match[/(male)/]
But for some reason this does not work: regex_match[/(male|female)/]
Maybe someone can help.