You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Matthias Wessendorf <ma...@matthias-wessendorf.de> on 2004/06/01 23:08:33 UTC
[validator-plugin] MASK_VALIDATOR
Hi there,
what is the reason, the mask need to start with "^"
and end with "$" ?
-->
<var-name>
mask
</var-name>
<var-value>
^[a-zA-Z]*$
</var-value>
possible to turn off?
Cheers,
--
Matthias Weßendorf
Aechterhoek 18
D-48282 Emsdetten
Email: matthias AT wessendorf DOT net
URL: http://www.wessendorf.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: [validator-plugin] MASK_VALIDATOR
Posted by David Graham <gr...@yahoo.com>.
--- Matthias Wessendorf <ma...@matthias-wessendorf.de> wrote:
> Hi there,
>
> what is the reason, the mask need to start with "^"
> and end with "$" ?
Because Commons Validator uses ORO as the regex engine. I believe when we
move to standard Java 1.4 regexs you won't need the ^ and $.
David
>
> -->
> <var-name>
> mask
> </var-name>
> <var-value>
> ^[a-zA-Z]*$
> </var-value>
>
> possible to turn off?
>
> Cheers,
> --
> Matthias We�endorf
> Aechterhoek 18
> D-48282 Emsdetten
> Email: matthias AT wessendorf DOT net
> URL: http://www.wessendorf.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org