velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Berk" <>
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) ) something...

Make sense?



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 
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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message