REGEXP_REPLACE
Function Description
The REGEXP_REPLACE function is used to find all substrings in the string str that match the regular expression regexp and replace them with the specified string rep.
Parameter Description
- str (string): The string to be processed.
- regexp (string): The regular expression string. The current regular expression engine used is re2.
- rep (string): The string used to replace the matched substrings.
- position (int, optional): The position to start matching, greater than or equal to 0. The default value is 1, which means matching starts from the beginning of
str. Ifpositionexceeds the length ofstr, the result will returnstr.
Return Result
Returns the processed string.
