Thanks for those replies. I tried the suggestions and they work well. They will help me get started, it will take a bit to sink in but I think it will be worth learning
Pages 1
You are not logged in. Please login or register.
Scarabée Software: Forum → Posts by dbareis
Pages 1
Thanks for those replies. I tried the suggestions and they work well. They will help me get started, it will take a bit to sink in but I think it will be worth learning
I've just started to try Siren but am struggling to work out how to do what I want (I wish there were more examples).
I want to convert filenames like: 30-3-2013 - Fred was here.txt (begins day, month, year) to 2013-03-30 - Fred was here.txt
My Expression so far is: %b(s/([0-9]+)-([0-9]+)-([0-9]+)/\3-\2-\1 \4/).%e
That gets it to: "2013-3-30 - Fred was here.txt", close but I want the month (3) padded to "03".
I'm no regular expression expert either :-)
If someone can explain why this doesn't work that would be great: %b(s/(.+)-(.+)-(.+)/\3-\2-\1 \4/).%e (possibly greedy verus non-greedy, if so any way to control that?
Pages 1
Scarabée Software: Forum → Posts by dbareis
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.