import { type Str } from "https://deno.land/x/rimbu@1.1.0/typical/index.ts";
const { ReplaceAll } = Str;
Replaces, in the given string, all matches with Sub with the given Repl.
Examples
Example 1
Example 1
ReplaceAll<'abcba', 'b', '_'> => 'a_c_a'
ReplaceAll<'abcba', 'b' | 'c', '_'> => 'a___a'