Regexp::Common rewrite