[rt-users] CustomFieldValue - strip leading zeroes

Rob Munsch rob.munsch at gmail.com
Tue May 19 12:19:49 EDT 2009


I'm trying to use s/^0*// in my CF template to strip out leading 0s from a 4
to 6 digit string.

Some of them don't have leading 0s, some do; sometimes they are 4-6 digits
and i need all of them; sometimes they are 6 digits with one or two leading
zeroes i have to get rid of.

using
(s/^0*//([0-9]{4,6}))

did not work, and i'm not sure if it's because i'm using it in the wrong
place, or because this method won't work for custom fields.

Help!,
Rob

-- 
/chown -R us:us /yourbase
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090519/8f645e1b/attachment.htm>


More information about the rt-users mailing list