Page 1 of 1

Help with regex

Posted: Mon Jul 20, 2009 4:14 pm
by rbfabbri
Hi, please somebody help me.

I'm needing a regex that accepts strings with:

- A-Z uppercase or lowercase;
- white space;
- dot (.)

Example:
"John", "J. ohn", ".j.O.h.N", "....John" ...

I tried to make one but no success.

Thanks!!!

Re: Help with regex

Posted: Mon Jul 20, 2009 6:46 pm
by Christopher
rbfabbri wrote:- A-Z uppercase or lowercase;
- white space;
- dot (.)
Something lke "/^[A-Za-z \.]*$/ should work