regsub
Perform substitutions based on regular expression pattern matching