KnowledgeWorks

RegEx ReplaceAll

RegEx ReplaceAll

I recently needed a function that would replace each substring of a string that matched a given regular expression with a new string. Because the builtin Str object does not provide this,

Example Usage:

Sample Output:

Source Code: