splitterWithMatches

Split the given string on pat, but keep the matches in the final result.

package
splitterWithMatches
(
Range
RegEx
)
(
Range r
,
RegEx pat
)
if (
is(Unqual!(ElementEncodingType!Range) : dchar)
)

Parameters

r
Type: Range

the string to be split

pat
Type: RegEx

the regex pattern

Return Value

Type: auto

A forward range of strings

Meta