Extended RegEx replacement.