Skip to main content

Modify key values via regexp

Project description

Introduction

transmogrify.regexp allows you to use regular expressions and format strings to search and replace key values in a Transmogrifier pipeline. If your results are grouped, you may optionally specify a group order.

Installation

Sample installation (via mr.migrator):

[buildout]
develop = .
extends = http://x.aclark.net/plone/4.1.x/develop.cfg
parts += migrate

[migrate]
recipe = mr.migrator
eggs =
    transmogrify.extract
    transmogrify.filesystem
    transmogrify.ploneremote
    transmogrify.pathsorter
    transmogrify.print
pipeline = pipeline.cfg

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

Changelog

0.2.0 (2011-09-01)

  • Fix brown bag [aclark]

0.1.0 (2011-09-01)

  • Initial release [aclark]

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.2.0.zip (6.0 kB view details)

Uploaded Source

File details

Details for the file transmogrify.regexp-0.2.0.zip.

File metadata

File hashes

Hashes for transmogrify.regexp-0.2.0.zip
Algorithm Hash digest
SHA256 96908157e8ecb510582bc2096784885ab32c20f26dab5c530eca7db3109d32e6
MD5 f7f389814264cae3a1671b813f73aedc
BLAKE2b-256 95c8977b8af18ddf2cc2352c12fa046323663a45e9074057b51502060ab370f5

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