You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Barry Books <tr...@gmail.com> on 2011/11/19 00:08:12 UTC

regexp validatation problem

I'm having a problem with regexp validation. If I put

zip-regexp=^\\d{5}(-\\d{4})?$

in a property file I get this on my Javascript console

SyntaxError: JSON Parse error: Invalid escape character d

and regexp does not work on the client. If I put

zip-regexp=^\\\\d{5}(-\\\\d{4})?$

the client works but it fails on the server.


I'm running 5.3-rc-2

Anyone else see this?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org