Closed (fixed)
Project:
Feeds Tamper
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Reporter:
Created:
1 Mar 2011 at 05:16 UTC
Updated:
10 Aug 2011 at 23:01 UTC
I'm trying to recast an integer into a 9digit (leading 0s) integer, and not sure if (or how) to do this with the rewrite field. can I use a function like: STR_PAD_LEFT? if so, how would I enter this into the Replacement Pattern field? thanks, C
Comments
Comment #1
twistor commentedI've added a pad string plugin which will do what you're looking for. Ideally, a plugin that utilizes sprintf syntax would be better for these kinds of things.