You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Curtis Taylor <cu...@yahoo.com> on 2005/01/17 05:54:06 UTC
Re: [OT] validation syntax - decimal precision
Hi Nathan,
Two suggestions:
1.) Mastering Regular Expressions by J.E.E. Friedel
(http://www.amazon.com/exec/obidos/ASIN/0596002890/qid=1105937543/sr=2-1/ref=pd_ka_b_2_1/002-6332011-0856023)
2.) Kodos (http://kodos.sourceforge.net/home.html)
Good luck,
Curtis
Nathan Coast wrote:
> Hi,
>
> I have a price field that I want to validate as a float with these
> additional constraints 1-3 digits before the decimal, if the decimal
> exists, 1-2 digits after the decimal.
>
> anyone know the regexp that describes this?
>
> cheers
> Nathan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org