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 details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for transmogrify.regexp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b32181e1d26bc9c29cbad22fbd222f65ac9a8a5d4a794acdca6b6e132b3fa4c9
MD5 e2d9e66f423a26606028bc87fbefc13f
BLAKE2b-256 adb197ca8a86382771a840e478e170323a8d67099e86c97b90d19e675e90d0bf

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