Thank you, but still no luck.

the only difference is that i use tomcat and i don't
pack the classes into a jar file. this doesn't seem to
be the problem, since regular expressions provided in
the tutorial work fine, such as:

zip-regexp=\\d{5}(-\\d{4})?
credit-regexp=\\d{4}(\\-?\\d{4}){3}

Cheers,

Sige



--- Lance Java <[EMAIL PROTECTED]> wrote:

> Since your regex is defined in a property file, you
> don't need to escape
> your backslashes as you do with a java string.
> 
> try \-*\d*\.*\d*
> 
> Cheers,
> Lance.
> 
> On 15/04/2008, Filip S. Adamsen <[EMAIL PROTECTED]>
> wrote:
> >
> > That's odd, it works for me alright... Tapestry
> doesn't do anything
> > special wrt. regular expressions, it just uses the
> java.util.regex stuff.
> >
> > -Filip
> >
> > Sige skrev:
> >
> > > It seems @Validate("regexp") only support fixed
> number
> > > of matches such as \\d{4}, and doesnt support
> "one or
> > > more" or "zero or more" matches(\\d* or \\d+).
> > >
> > > Sige
> > >
> > >
> > > --- Sige <[EMAIL PROTECTED]> wrote:
> > >
> > >  Hi,
> > > >
> > > > I have tried to use a  @Validate("regexp") to
> > > > validate
> > > > a number field, the regexp used is:
> > > > numField-regexp=\\-*\\d*\\.*\\d*
> > > >
> > > > However this doesnt work in T5 (5.0.9), the
> > > > validation
> > > > is simply ignored, i have tested the regular
> > > > expression  in Java correct. I wonder if T5
> supports
> > > > all java.util.regex.Pattern, or what I have
> gone
> > > > wrong?
> > > >
> > > > Thanks
> > > >
> > > > Sige
> > > >
> > > > Send instant messages to your online friends
> > > > http://au.messenger.yahoo.com
> > > >
> > > > 
>
---------------------------------------------------------------------
> > >
> > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > >
> > > Send instant messages to your online friends
> > > http://au.messenger.yahoo.com
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 


Send instant messages to your online friends http://au.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to