cancel
Showing results for 
Search instead for 
Did you mean: 

Map string to array of strings

Former Member
0 Kudos

Can anyone help me to do the following mapping:

Example:

From String

abcd1234defg5678

to Array of strings

abcd1234

defg5678

I'm hoping to do this in my message mapping. The split is on a fixed length - 8 chars in this example. The input string is of variable length.

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

do you have to split the string into two strings??? or given a string split it into n strings of length m??

You can use user defined function( java method) in message mapping

Naveen

Former Member
0 Kudos

HI Naveen,

given a string split it into n strings of length m

Can you help with the java code?

thanks