JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 08.05.2022, 21:27
I3ordo I3ordo is offline
DSL Light User
 
Join Date: Mar 2022
Posts: 34
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:
https://somesite.cc/ex-ample/example/123456-some-page-title-with-dashes.html
**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 21:31.
Reply With Quote
  #2  
Old 09.05.2022, 15:55
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 62,561
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
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #3  
Old 09.05.2022, 18:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,841
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 21:56.
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 - 2022, Jelsoft Enterprises Ltd.