JavaScript Regex: Split String and Keep the Separator
JavaScript Regex: Split String and Keep the Separator: a task in Terminal-Lego-15k (Harbor dataset). You need to write a JavaScript solution that splits a string using a regex pattern while keeping the delimiter in the resulting array segments.
Part of PrimeIntellect/Terminal-Lego-15k.