velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TIMMERMAN Craig" <Craig.Timmer...@alcatel-lucent.com>
Subject split a string on newline
Date Thu, 24 Jan 2008 16:33:29 GMT
Hello,
 
I have been searching for a solution and haven't seen anything yet, here
is the problem:
 
I have a string that contains values separated by new line characters.
Is there any way to split the string into an array?  I've tried 
 
#set( $aStringArray = $Property1.split("\n") )
 
but it doesn't seem to understand the new line character.  Is there any
way to do this?
 
Thanks.
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message