Anonymous user
Multisplit: Difference between revisions
no need to mention output twice
m (wordliness) |
(no need to mention output twice) |
||
Line 1:
{{draft task}}It is often necessary to split a string into pieces based on several different (potentially multi-character) separator strings, while still retaining the information about which separators were present in the input. This is particularly useful when doing small parsing tasks. The task is to write code to demonstrate this.
'''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.
|