remove

fun String.remove(value: String, ignoreCase: Boolean = false): String

Removes all occurrences of the value in the string

Return

A new string with all occurrences of the value removed

Parameters

value

A vlaue

ignoreCase

Ignore case?


fun String.remove(pattern: String): String
fun String.remove(regex: Regex): String