This function replaces all sub-strings matching the given regular expression with the given replacement, where ^% represents the matching sub-string, and ^
represents the index of the current sub-string under all matched sub-string starting at 1.
findModify(text, regexp, replacement) #Output: Text