Z
zhuang
Hi,
I try to use javascript for validation,
re = new RegExp("^(([a-zA-Z]|\s)+)$");
but it does not work, problem comes from \s, but \s works well with
RegularExpressionValidator control.
Surprisly, if I just use a space instead of \s, it works.
I searched some javascript tutorial on line, they all say \s is the
right thing.
Could anyone give me a answer?
Thanks lot
zhuang
I try to use javascript for validation,
re = new RegExp("^(([a-zA-Z]|\s)+)$");
but it does not work, problem comes from \s, but \s works well with
RegularExpressionValidator control.
Surprisly, if I just use a space instead of \s, it works.
I searched some javascript tutorial on line, they all say \s is the
right thing.
Could anyone give me a answer?
Thanks lot
zhuang