delete

fun String.delete(vararg substrings: String): String

It makes a copy of the string with all occurrences the matching substrings arguments deleted.

Return

a copy of the string with all occurrences of the specified substrings deleted.

Parameters

substrings

the substrings to be deleted.

Sources

Link copied to clipboard