﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
120	StringSplit limit parameter	Paulie		"StringSplit(""String"",""delimiters""[, flag [,limit]])

I was wondering how big of a hassle it would be to make StringSplit have an additional optional parameter that would limit the amount of splits. Similar to PHPs ""explode""

== Example ==
{{{
$String = ""Test1|Test2|Test3|Test4""
$Result = StringSplit($String, ""|"",1,2);<-2 would split to 2 elements (perform 1 split)
}}}
$Result[0] = 2 (redundant i suppose :\)
$Result[1] = ""Test1""
$Result[2] = ""Test2|Test3|Test4""

== Reason ==
There have been multiple time that I've found myself splitting a long string only to use the first few elements, while it hasn't been a problem to use the current stringsplit for this, it seems like a feature that wouldn't hurt (especially considering it would be an optional param, so no script breaks)

I'm sure it's been considered, but i didn't see it suggested.
Thanks.
"	Feature Request	closed		AutoIt		None	Rejected	Stringsplit	
