func.regexp_replace

This function returns a new string with the substrings, which match a regular expression pattern, replaced by a new substring

This function returns a new string with the substrings, which match a regular expression pattern, replaced by a new substring

Syntax

func.regexp_replace(value, search, replace)

Examples

func.regexp_replace('plaidcloud', 'p', 'P') --> Plaidcloud  
func.regexp_replace('remove12345alphabets','[[:alpha:]]','','g') --> 12345  
func.regexp_replace('remove12345digits','[[:digit:]]','','g') --> removedigits  
Last modified November 27, 2023 at 12:56 PM EST: Restructured the file structure/a few changes (f6c58b8)