splitterWithMatches

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

  1. auto splitterWithMatches(Range r, RegEx pat)
    package
    static if(version_major == 2 && version_minor < 72)
    splitterWithMatches
    (
    Range
    RegEx
    )
    (
    Range r
    ,
    RegEx pat
    )
    if (
    is(Unqual!(ElementEncodingType!Range) : dchar)
    )
  2. auto splitterWithMatches(Range r, RegEx pat)

Parameters

r Range

the string to be split

pat RegEx

the regex pattern

Return Value

Type: auto

A forward range of strings

Meta