Split s[] into an array of strings, using the regular expression pattern as the separator.
String to search.
Regular expression pattern.
array of slices into s[]
foreach (s; split("abcabcabab", RegExp("C.", "i"))) { writefln("s = '%s'", s); } // Prints: // s = 'ab' // s = 'b' // s = 'bab'
See Implementation
Split s[] into an array of strings, using the regular expression pattern as the separator.