Easypt

erase

..Root.String.erase

Erases the sequence of characters in the range [first, last).

Child of:

String

Signatures:

NativeCallable, Callable

Example:

auto str.=("Hello World!");
auto begin.=(str.begin().+(str.find(" ", 0)));
auto end.=(str.begin().+(str.find("!", 0)));
str.erase(begin, end);
log(str);

Expected output:

Hello!