velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Berk" <jb...@purdueefcu.com>
Subject regex in template
Date Tue, 13 Jan 2009 23:37:48 GMT
Velocity rocks, but I do have a few questions:

1. when/where is the javadoc for the 1.6 engine?
2. is it possible to do a regex in a template?

Something like this:

#set( $regex = "foo" )
#foreach( $item in $itemList )
#if( $item.getItemId().startsWith($regex) )
...do something...
#end
#end

Make sense?

Thanks,

Jason


The PEN is now mightier than the PIN. Simply use your PEN 
instead of your PIN and sign for your PEFCU Visa Check Card 
purchases. Earn bonus points redeemable for gift and travel 
awards. Combine PEFCU Visa check card and credit card points 
for even more rewards.


***This is a transmission from Purdue Employees Federal Credit
Union (PEFCU) and is intended solely for its authorized
recipient(s), and may contain information that is confidential
and or legally privileged.  If you are not an addressee, or the
employee or agent responsible for delivering it to an addressee,
you are hereby notified that any use, dissemination,
distribution, publication or copying of the information 
contained
in this email is strictly prohibited. If you have received this
transmission in error, please notify us by telephoning (765)
497-3328 or returning the email. You are then instructed to
delete the information from your computer.  Thank you for your
cooperation.***


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message