You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stéphane MOR <st...@yahoo.fr> on 2002/12/13 09:11:00 UTC
[jelly] Regexp ?
Hi,
I'm trying to set variables with a Perl5 regexp pattern, such as :
<j:set var="net-ip"
value="^((?:0*)(?:(?:1(?:\d{1,2})|2(?:[0-4]\d|5[0-5]))|\d{1,2})(?:\.|$)){4}"/>
This doesn't want to work and always returns 0 (zero).
This probably comes from the {} and $ that are inside the regexp.
Is there a way to disable Jelly evaluation before setting the variable,
so that it would be sent
'as is' and Jelly would not try and evaluate it first ?
Something like "evaluateAttributes(boolean)" at the Tag level that would
be checked by Jelly before
trying to evaluate, or something like that ...
Cheers,
Stéphane
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>