JDownloader Community - Appwork GmbH
 

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 29.07.2020, 13:09
ominus ominus is offline
JD Alpha
 
Join Date: Jun 2012
Posts: 22
Default artstation.com Packagizer rule Help with negative lookahead regex

Hello

I need to create two different package rules for the same domain but based on whether it contains www. or not., since the original package name changes for each case.

more specifically, I have these two urls:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

I use Source Contains with regex enabled and this pattern:
(?<!www)\.artstation\.com

but it matches both urls, when it should match only NAME.artstation.com and not WWW. artstation.com
I tested with multiple variations of the above pattern, always both urls match or they dont match at all.

some examples:
^(?<!www)\.artstation\.com none match
^(?<!www).+\.artstation\.com both match
(?!www)\.artstation\.com both match

what is strange, is that I test the pattern with this java regex tester, and the original pattern does work, it matches only the second url name.arstation.com as it should:
**External links are only visible to Support Staff****External links are only visible to Support Staff**

so what am I doing wrong here?

Last edited by ominus; 29.07.2020 at 13:13.
Reply With Quote
 

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 19:25.
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 - 2021, Jelsoft Enterprises Ltd.