Mike McNally | 27 Nov 00:34

@Validate(mask="foo")

I notice that the "field-metadata" tag dumps out the "mask" regex with
added anchors at the beginning and end of the pattern (^ and $). Is
that because the validation code implicitly uses the regex that way
server-side (meaning that writing rules with those anchors is not a
good idea)?

--

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Aaron Porter | 27 Nov 01:48

Re: @Validate(mask="foo")

Hi Mike,
Yes that's correct. Internally Stripes uses Matcher.matches() which 
compares against the entire string.

Aaron

Mike McNally wrote:
> I notice that the "field-metadata" tag dumps out the "mask" regex with
> added anchors at the beginning and end of the pattern (^ and $). Is
> that because the validation code implicitly uses the regex that way
> server-side (meaning that writing rules with those anchors is not a
> good idea)?
>
>
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane