REGEXP_REPLACE

    Syntax

    REGEXP_REPLACE( string, pattern, replace_with )
    

    Description

    Searches for a substring in the string string using the regular expression pattern pattern and replaces it with the string replace_with.

    If the substring is not found, the string is not changed.

    Argument types:

    • stringString
    • patternString
    • replace_withString

    Return type: String

    Note

    See the documentation of the data source to clarify the regular expression syntax.

    Data source support

    ClickHouse 19.13, MySQL 8.0.12, PostgreSQL 9.3.