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]
# 1
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?).
JoachimSauera at 2007-7-13 23:26:50 > top of Java-index,Java Essentials,Java Programming...
# 2
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?
busyprogra at 2007-7-13 23:26:50 > top of Java-index,Java Essentials,Java Programming...
# 3

> 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.

prometheuzza at 2007-7-13 23:26:50 > top of Java-index,Java Essentials,Java Programming...
# 4
> Have you tried the regex pattern Joachim suggested?> I'm pretty sure that it is what you're looking for.Just add A-Z after every a-z and it should be ok.
prometheuzza at 2007-7-13 23:26:50 > top of Java-index,Java Essentials,Java Programming...
# 5
Yes, you are right. I forgot the upper case but now it works.Thanks!
busyprogra at 2007-7-13 23:26:50 > top of Java-index,Java Essentials,Java Programming...