Skip to main content

Modify key values by applying a regular expression

Project description

Introduction

transmogrify.regexp allows you to use regular expressions and format strings to search and replace key values in a transmogrifier pipeline.

Installation

Usage

Sample usage:

[apply_regexp]
blueprint = transmogrify.regexp
key = _path
expression = /(.*)/(\d\d\d\d)/(\d\d)/(\d\d)/(.+)/index.html
format = %%s/%%s-%%s%%s%%s.html
order = 0,4,1,2,3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transmogrify.regexp-0.5.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page