Trimming tags and other String Operations
Forum » Users / Support » Trimming tags and other String Operations
Started by: Lu TimdaleLu Timdale
On: 1257605633|%e %b %Y, %H:%M %Z|agohover
Number of posts: 2
rss icon RSS: New posts
Summary:
Are there any common expressions that can be used on the tags?
Trimming tags and other String Operations
Lu TimdaleLu Timdale 1257605633|%e %b %Y, %H:%M %Z|agohover

I'm trying to use the tag <Exif.Image.Model> as part of the filename, but only want to use the last 3 characters. Can I trim this tag via some python expression?

So, I want my filename to change from
myimage NIKON D90.jpg (where "NIKON D90" is the model)
to
myimage D90.jpg

Thanks.

Lu

unfold Trimming tags and other String Operations by Lu TimdaleLu Timdale, 1257605633|%e %b %Y, %H:%M %Z|agohover
Re: Trimming tags and other String Operations
stanistani 1257607810|%e %b %Y, %H:%M %Z|agohover

Does this work?

<Exif.Image.Model[-3:]>

Note this this will only work in phatch 0.2!

last edited on 1257607914|%e %b %Y, %H:%M %Z|agohover by stani + show more
unfold Re: Trimming tags and other String Operations by stanistani, 1257607810|%e %b %Y, %H:%M %Z|agohover
New post
© 2007-2008 www.stani.be
(It is not allowed to copy, distribute or transmit any part of the wiki without written permission.
Only contribute to this wiki if you agree with this term.)