|
#1
|
|||
|
|||
Renaming download package name (regex, Packagizer)
I want to rename the downloaded package from "text1 - text2- text3" (where textx can be any string) to "text1 - text3 - text2".
The regex for the matching string should be "(\w+)\s+-\s+(\w+)\s+-\s+(\w+)" and the rename should then be "$1 - $3 - $2" I tried to set this up in packagizer as shown in the attached screendump. I obvioulsy did something wrong. Can you please help me? Thanks in advance (sorry for the spelling error in the subject line - I cannot correct it after posting - should of course be "Renaming" not "Reniming"....) Last edited by cstern; 31.01.2023 at 14:12. |
#2
|
||||
|
||||
Hi again,
short answer: You're doing it wrong! While the "$number" format is widely used, it is impossible to use this here as the rule also needs to know where to get the data from (you can also use RegEx in source URL and other fields...). So here are two things to check/fix: 1. Is the RegEx checkbox to the right of the "Package name" source enabled (exactly that is not visible in your screenshot)? 2. Instead of the "dollarNumber" format then use what we also described in our help articles: https://support.jdownloader.org/Know...the-packagizer and: https://support.jdownloader.org/Know...ame-via-anchor You probably don't want to type all of that by hand so: --> Rightclick in the "then set...Packagename" field -> Danymic variables -> Package name wildcard [1-X]
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 31.01.2023 at 15:38. Reason: Fixed some typos |
#3
|
|||
|
|||
Great! It works!
The dialog box was too narrow and I only saw the check box after pulling the dialog wider. And the hint about right click also was a great tip. Thanks again. |
#4
|
||||
|
||||
Thanks for your feedback.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|