Replace all regexes with a global regex