regular pattern
Is it possible to specify the following pattern: the string consists of at least two letters and in the total string only letters, apostrophes and spaces are allowed. so this is not allowed f.e. " 'a' " but this is: " 'a' b "
[236 byte] By [
busyprogra] at [2007-10-2 20:43:28]

a naive (probably unperformant, but probably working) version would be "[a-z' ]*[a-z][a-z' ]*[a-z][a-z' ]*". (that's untested, btw).Modify as needed (are upper case letters allowed?).
Yes, upper case letters are allowed. But I don't think that will work. What I actually mean is that all strings with letters, apostrophes and spaces are allowed as long as there are two letters in it, no matter where they are positioned in the string. Is that possible with a pattern?
> Yes, upper case letters are allowed. But I don't
> think that will work. What I actually mean is that
> all strings with letters, apostrophes and spaces are
> allowed as long as there are two letters in it, no
> matter where they are positioned in the string. Is
> that possible with a pattern?
Have you tried the regex pattern Joachim suggested? I'm pretty sure that it is what you're looking for.