velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: split a string on newline
Date Thu, 24 Jan 2008 17:18:51 GMT
Yeah, VTL isn't the same as java with regard to string escape
sequences.  Have you tried:

#set( $aStringArray = $Property1.split("
") )

On Jan 24, 2008 8:33 AM, TIMMERMAN Craig
<Craig.Timmerman@alcatel-lucent.com> wrote:
> 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.
>
>

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


Mime
View raw message