Support matching RegExes in Serialize#replace.