Re: [T5] Possible bug in regexp

2008-11-26 Thread Marcelo Lotif
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

Re: [T5] Possible bug in regexp

2008-11-26 Thread Lucas Silva
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