Right, it's false.This implies that tapestry, by allowing me to type this
and let it pass in the client side, is wrong?
On Thu, Nov 27, 2008 at 1:00 AM, Lucas Silva <[EMAIL PROTECTED]> wrote:
> Hi, I don't execute it in Tapestry, but in Javascript I use ^ and $ to
> delimite the whole string.
> So
Hi, I don't execute it in Tapestry, but in Javascript I use ^ and $ to
delimite the whole string.
So,
your example:
/^[0-9]{1,4}$/.test("999a")
is false !!
I hope it helps.
Lucas
On Wed, Nov 26, 2008 at 10:55 PM, Marcelo Lotif <[EMAIL PROTECTED]> wrote:
> Hi all,I was trying to build a simpl
Hi all,I was trying to build a simple regexp to validate a string formed
only by numbers with a maximum lenght of four.
so I came with this expression:
carga_horaria-regexp=[0-9]{1,4}
seems right, but tapestry's client side validation is not catching some
patterns like this one "999a".
I build a