You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave J Dandeneau <Da...@viant.com> on 2002/02/28 17:19:12 UTC
Vaildation using regexp fails for large strings
We are experiencing a problem where the regexp package that the
validator uses fails for some expressions and causes the system to hang.
I am definitly not the best with regular expressions, but the expression
that fails is ^.{1,30}$. It is fine until you test against a string
longer then two or so characters. Is it possible to use ORO instead of
the regexp package when doing validation?
Dave
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Vaildation using regexp fails for large strings
Posted by David Winterfeldt <dw...@yahoo.com>.
I've had problems with this too. That is why I added
minlength and maxlength validation routines so regular
expression wouldn't need to be used this way.
ORO could also be used if you write your own validator
using ORO instead of Jakarta Regexp.
David
--- Dave J Dandeneau <Da...@viant.com> wrote:
> We are experiencing a problem where the regexp
> package that the
> validator uses fails for some expressions and causes
> the system to hang.
> I am definitly not the best with regular
> expressions, but the expression
> that fails is ^.{1,30}$. It is fine until you test
> against a string
> longer then two or so characters. Is it possible to
> use ORO instead of
> the regexp package when doing validation?
>
> Dave
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>