Thread: [User feedback required] Packagizer REGEX - capture group without underscopes
View Single Post
  #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