tf.strings.regex_replace

View source on GitHub

Replace elements of input matching regex pattern with rewrite.

tf.strings.regex_replace(
    input, pattern, rewrite, replace_global=True, name=None
)

Args:

Returns:

string Tensor of the same shape as input with specified replacements.