Support preg substitution as a 'metadata-transform'