RegExpT.split

Splits the input at the matches of this regular expression into an array of slices.

class RegExpT(char_t)
inout(char_t)[][]
split
(
inout(char_t)[] input
)

Examples

import tango.io.Stdout;
import tango.text.Regex;

void main()
{
    auto strs = Regex("ab").split("abcabcababqwer");
    foreach( s; strs )
        Stdout.formatln("{}", s);
}
// Prints:
// c
// c
// qwer

Meta