JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08.05.2022, 22:27
I3ordo I3ordo is offline
Mega Loader
 
Join Date: Mar 2022
Posts: 65
Default Packagizer REGEX - capture group without underscopes

Hi again! Last week, if someone show me this:
Code:
(https?://somesite.*\/)(\d+[-|_])(.+\.)(html)
I would say its Persian...

But with all effort and patience i have witnessed here in this forum, i cant thank you enough for that...i am now able to write that regex code despite it taking 3 hours lol...

But since i got infected with knowledge, and the journey being endless, i cant stop but wonder if i can make a better capture...

this code above gets me what i want in "capture group 3".


original page link
Code:
**External links are only visible to Support Staff**
Captured as
Code:
some-page-title-with-dashes
is there a way in regex to capture without the dashes so that the
Code:
<jd:source:3><jd:orgfiletype>
is captured as:
Code:
some page title with dashes.extension
ps:currently, i batch rename them inside JD, replacing dashes with white space but just wondering if i would be able to do it within the packagizer...

Last edited by I3ordo; 08.05.2022 at 22:31.
Reply With Quote
  #2  
Old 09.05.2022, 16:55
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Hi again,
this is not possible using the Packagizer.
The only way you could currently do this is by either writing a custom JD plugin ur using a simple EventScripter script.

...of course you could also simply use external tools to rename such files afterwards.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #3  
Old 09.05.2022, 19:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@I3ordo: check/ask https://board.jdownloader.org/showthread.php?t=70525
I'm sure there already exists a script for such rename action. In doubt, ask in the thread.
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 02:07.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.