Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: Lane on January 26, 2015, 10:20:15 AM

Title: String Split
Post by: Lane on January 26, 2015, 10:20:15 AM
Split a string at each divider character and store the results into separate strings.

Limitations:
Number of result strings must be known. Error detection will throw if the input string has more segments than the storing capacity. No error if there are fewer strings, so essentially a maximum number of segments is what you are defining.

Also on Ecosystem.
Title: Re: String Split
Post by: 600 on January 26, 2015, 11:55:36 AM
Yes!

Thanks!!
Title: Re: String Split
Post by: nick_h82 on January 27, 2015, 04:26:35 AM
You're a legend! I was just formulating this question and you've written an action. Just after the same happened with your average vector3 action. Cheers Lane!
Title: Re: String Split
Post by: 4arrancho on August 03, 2015, 07:42:06 PM
What's the divider symbol for string with break lines

For example if i have this string
"line 1
 line 2
 line 3"

and wanna split it into
string 1 : "line 1"
string 2 : "line 2"
string 3 : "line 3"

I tried \n and didn't work...

thanks!
Title: Re: String Split
Post by: Lane on August 03, 2015, 08:18:26 PM
I don't think you can do linebreaks with this action. Get a valid character for it to recognize in there.