Talk:Multisplit: Difference between revisions

Content added Content deleted
(I do not understand the expected results)
Line 306: Line 306:
whatever remains of inputString after the last separator gets included in the result
whatever remains of inputString after the last separator gets included in the result
</lang> --[[User:Rdm|Rdm]] 19:57, 21 April 2011 (UTC)
</lang> --[[User:Rdm|Rdm]] 19:57, 21 April 2011 (UTC)

I do not understand the expected results statement in the task description. The task description says "The function should take an input string and an ordered collection of separator strings, and split the string into pieces representing the various substrings."

Given an input string a!===b=!=c, and three separators ==,!= and =, I would expect a result as follows:

a! =b= c

With the operators matching as follows:

a! (==) =b= (!=) c
Note that the third separator is not matched.

--[[User:Markhobley|Markhobley]] 21:43, 9 June 2011 (UTC)