Replaces the nth instance of a regex match