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
File details
Details for the file transmogrify.regexp-0.3.0.tar.gz
.
File metadata
- Download URL: transmogrify.regexp-0.3.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7624c6398914a375434d0b93fd4ca73e93c7b128ffdeeca6b8cf0e9e8eafced |
|
MD5 | 19fd78465f22dc87d40389f7ba41d3f0 |
|
BLAKE2b-256 | 3ee9a19d9e5c70f7c87de969727e7e0360c9cd40d56bf2bee83cd906fcf61fb3 |