Multisplit: Difference between revisions

Content added Content deleted
(→‎{{header|Perl 6}}: add Perl 6 entry)
(fix input string and correct output that was changed by anonymous)
Line 5: Line 5:
'''Extra Credit:''' include match information that indicates which separator was matched at each separation point and where in the input string that separator was matched.
'''Extra Credit:''' include match information that indicates which separator was matched at each separation point and where in the input string that separator was matched.


Test your code using the input string “<code>a!===b=!=c==d</code>” and the separators “<code>==</code>”, “<code>!=</code>” and “<code>=</code>”.
Test your code using the input string “<code>a!===b=!=c</code>” and the separators “<code>==</code>”, “<code>!=</code>” and “<code>=</code>”.


For these inputs the string should be parsed as <code>a != == b = != c == d</code>.
For these inputs the string should be parsed as <code>a != == b = != c</code>.


=={{header|D}}==
=={{header|D}}==