![]() |
#1 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Sep 2014
Device: none
|
Extend work the regular expression to filename
Hello,
Is in new versions calibre is possible to extend operation of regular expression for filenames? Oversize image added as attachment. Last edited by issybird; 12-12-2015 at 08:40 PM. |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
No, you can't.
Is there any reason a simple rename with an incremented suffix, isn't enough? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Bulk rename is the best you can do unless you want to go through one by one.
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Sep 2014
Device: none
|
I often use renaming files. I'm probably in a minority, but probably will be a few more using this. But if they can not, it does not. Too bad that you do not see the benefits of this functionality.
|
![]() |
![]() |
![]() |
#5 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Well, so far bulk rename with an incrementing suffix has done everything I needed it to do -- mostly because I want a prefix and an incrementing suffix.
But you haven't actually explained a use case where renaming via regular expressions works better for you. So it is hard for anyone to see the benefits you see. Now, if you would like to explain why you want it, perhaps you will convince @kovidgoyal of the need. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Sep 2014
Device: none
|
Unfortunately, I do not have the gift of persuasion. Because how do you convince to things for me so obviously, and for other unnecessary.
Very sorry for my English. Sometimes go out nonsense. Best regards, Jan |
![]() |
![]() |
![]() |
#7 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Skip the persuasion and try explanation.
![]() |
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
And don't forget an epub is a zip file. You can unpack it, do the renaming using other tools and then zip it up again. Last edited by davidfor; 12-14-2015 at 12:09 AM. Reason: No, that isn't a good idea. |
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,507
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Sep 2014
Device: none
|
Calibre is a powerful combine harvester. It has so many things, even unnecessary. And all throwing themselves at me when I suggest something useful. What's with you people?
I suggest a "real chocolate" and you say that this "chocolate-like product" is awesome? |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
The problem is we do not catch why it is useful, so people is asking for an example where the current tool is not enough and this comes in handy.
|
![]() |
![]() |
![]() |
#13 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Quote:
-file0001 -file0002 -file0003 to : -Your-choice1 -Your-choice2 -Your-choice3 all at once in one shot, whether you have 3 files or 50 files. Do you want it to have incremental letters instead of numbers? Do you want each file to have a completely different name? (Although I can't see how a regex would help with that at all) Just help us to understand your need |
|
![]() |
![]() |
![]() |
#14 |
The Fumbler
![]() Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
|
Wouldn't it be neat if you could call the rename function, or the split function, or any other function from a regex-function. Then this would be flexible and easily accomplished.
|
![]() |
![]() |
![]() |
#15 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
A regex function operates on matched text, in the context of a single file at a time, it does not make sense to do arbitrary processing from within it. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regular Expression - Adding metadata from filename | LMF | Calibre | 1 | 03-20-2012 06:46 PM |
Regular Expression Help | iKarampa | Calibre | 13 | 12-15-2010 07:17 AM |
Regular expression help | krendk | Calibre | 4 | 12-04-2010 04:32 PM |
Regular Expression Help | smartmart | Calibre | 5 | 10-17-2010 05:19 AM |
What is the default regular expression for filename import? | palex481 | Calibre | 2 | 03-22-2009 06:11 PM |