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.3.0.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file transmogrify.regexp-0.3.0.tar.gz.

File metadata

File hashes

Hashes for transmogrify.regexp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e7624c6398914a375434d0b93fd4ca73e93c7b128ffdeeca6b8cf0e9e8eafced
MD5 19fd78465f22dc87d40389f7ba41d3f0
BLAKE2b-256 3ee9a19d9e5c70f7c87de969727e7e0360c9cd40d56bf2bee83cd906fcf61fb3

See more details on using hashes here.

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