Substitute all instances of match from source. Set replacement to null in order to remove instead of replace (or use the remove() function, below).
Template params: T = type of array element
pattern to match in source array
pattern to replace matched sub-arrays
buffer to write resulting array to
result
Buffer!(char) result; substitute("some string", "ring", "oops", result); test!("==")(result[], "some stoops");
See Implementation
Substitute all instances of match from source. Set replacement to null in order to remove instead of replace (or use the remove() function, below).
Template params: T = type of array element