commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stéphane MOR <stephane_lis...@yahoo.fr>
Subject [jelly] Regexp ?
Date Fri, 13 Dec 2002 08:11:00 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message