A regexp like this should work:
/^([a-zA-Z]|\s)+$/
Cheers,
Andy Ladouceur
Andy Amol wrote:
Hi,
I would like to test whether a given sting contains only character, it should also support spaces.
eg Course Book String. I am able to test CourseBookString.
Also I would like to know how can we
hi,
Thanks for the reply.
I want to know how to include char - i.e a dash . I want to test for it.
eg: COSC-3006.
I should be able to test that string as valid.
Also is there a way in which the form validation fails but when the user goes back to
the same form its previous values are retained.
[EMAIL PROTECTED] (Andy Amol) wrote in
news:[EMAIL PROTECTED]:
hi,
Thanks for the reply.
I want to know how to include char - i.e a dash . I want to test for
it. eg: COSC-3006.
I should be able to test that string as valid.
Also is there a way in which the form validation fails but when