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.4.0.tar.gz
.
File metadata
- Download URL: transmogrify.regexp-0.4.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d38632832ff5c36a74e55f65546f2982593d533d49d40ab3ed3b55e4fb1c7317 |
|
MD5 | 6a09e4edd2796d12ad1bcf18429eaf71 |
|
BLAKE2b-256 | 75991f349bd30b9fd79b2cea787bd276f76df8049dca4a7eba7a5cc787f776d7 |