JDownloader Community - Appwork GmbH
 

Closed Thread
 
Thread Tools Display Modes
  #41  
Old 19.01.2017, 14:40
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

No i can't learn the regex now...

How you create correct regex from the links i gave you and the words i want to delete from the result link?

Please tell me the procedure you follow so i do the same when i want to create a new rule.
  #42  
Old 19.01.2017, 15:25
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Quote:
(?:TwoDDL(?:\.eu){0,}[_]{0,}){1,}(.+)
I will explain this regex to you and then you should be able to modify it for yourself

Quote:
(?:TwoDDL(?:\.eu){0,}[_]{0,}){1,}(.+)

(?:X(?:Y){0,}[_]{0,}){1,}(.+)

That one will filter out

TwoDDL
TwoDDL_
TwoDDL.eu
TwoDDL.eu_
and all combinations
__________________
JD-Dev & Server-Admin
  #43  
Old 19.01.2017, 15:31
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

So if for example i want to filter the word "delete" i create a rule with:

(?:delete(?:\.eu){0,}[_]{0,}){1,}(.+)(?:X(?:Y){0,}[_]{0,}){1,}(.+)

Correct?

All these is case sensitive?
I mean i must time every letter exactly at the case it was caps or normal?

For example if i the word at link is "DeLetE" and i make a rule with the word "delete" it work or not?

And when you say all combination even if it was another extention like .com or .it or anything else.

Last edited by Agnostos; 19.01.2017 at 15:37.
  #44  
Old 19.01.2017, 15:31
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Quote:
(?:TwoDDL(?:\.eu){0,}[_]{0,}){1,}(.+)

( = Capture Group Open
?: = don't capture result

TwoDDL = TwoDDL must match

(?:\.eu) -> another Capture Group, don't captcha result, .eu must match, Captcha Group close

{0,} -> none or more matches (.eu) must exist

[_] -> matches on _ only

{0,} -> none or more matches (_) must exist

)-> Capture Group close

{1,} -> 1 or more maches (combinations of TwoDDL.....) must exist

( -> another Capture Group open

. -> match anything

+ -> must match at least once or more

) -> Capture Group close
Everything is explained on regex101
__________________
JD-Dev & Server-Admin
  #45  
Old 19.01.2017, 15:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Quote:
Originally Posted by Agnostos View Post
So if for example i want to filter the word delete i create a rule with:

(?:delete(?:\.eu){0,}[_]{0,}){1,}(.+)(?:X(?:Y){0,}[_]{0,}){1,}(.+)

Correct?
(?:X){1,}(.+)

That will remove
X or XX or XXX or XXXX....and so on...all leading X
__________________
JD-Dev & Server-Admin
  #46  
Old 19.01.2017, 15:42
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

Guys... I don't have if with programming or with pc languages so all these you explain to me i simply appear to me like a monster.

This is the exact reason i asked you if there is a site that i can put it the link and what i want to delete from that link.

Can't you create an easier way to create that kind of rules?

Last edited by Agnostos; 19.01.2017 at 15:47.
  #47  
Old 19.01.2017, 15:50
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

Uploaded
**External links are only visible to Support Staff****External links are only visible to Support Staff**

Nitroflare
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff**

Rapidgator
**External links are only visible to Support Staff****External links are only visible to Support Staff**


And i make a test and create that rule:
(?:TwoDDL(?:\.eu){0,}[_]{0,}){1,}(.+)(?:X(?:Y){0,}[_]{0,}){1,}(.+)

<jd:orgfilename:1>

And doesn't work to neither of these links.
  #48  
Old 19.01.2017, 19:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Please see https://board.jdownloader.org/showpo...6&postcount=38
The given rule works for ALL of your example links! We already posted the correct solution several times!
__________________
JD-Dev & Server-Admin
  #49  
Old 19.01.2017, 19:53
fits79 fits79 is offline
English? Eat I can?
 
Join Date: Nov 2011
Posts: 401
Default

wrong topic.

Last edited by fits79; 19.01.2017 at 19:57.
  #50  
Old 19.01.2017, 21:46
Agnostos Agnostos is offline
JD VIP
 
Join Date: Dec 2014
Posts: 312
Default

Quote:
Originally Posted by Jiaz View Post
Please see **External links are only visible to Support Staff**...
The given rule works for ALL of your example links! We already posted the correct solution several times!
Quote:
Originally Posted by Jiaz View Post
I will explain this regex to you and then you should be able to modify it for yourself
(?:TwoDDL(?:\.eu){0,}[_]{0,}){1,}(.+)(?:X(?:Y){0,}[_]{0,}){1,}(.+)

<jd:orgfilename:1>
I test it and doesn't work at any link.

As i tallied you before i try the rule you post it but no it doesn't work at any link of these i mention at my previews post.

I don't know why but it doesn't work.

Last edited by Agnostos; 19.01.2017 at 21:54.
  #51  
Old 19.01.2017, 22:54
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

what you know fits logs in with his old account, says the same spelling mistake and edits post to remove it, rewrites it under new account o_O.

we don't provide lessons on regular expressions. As stated earlier if you want to learn you will need to seek the aid of book or google for online help.

thread closed.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
  #52  
Old 20.01.2017, 12:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Quote:
Originally Posted by Agnostos View Post
(?:TwoDDL(?:\.eu){0,}[_]{0,}){1,}(.+)(?:X(?:Y){0,}[_]{0,}){1,}(.+)

<jd:orgfilename:1>
I test it and doesn't work at any link.

As i tallied you before i try the rule you post it but no it doesn't work at any link of these i mention at my previews post.

I don't know why but it doesn't work.
Why you keep on using the wrong regex! The regex provided by raztoki works just fine for all the links you've provided. Please see
https://board.jdownloader.org/showpo...3&postcount=48
__________________
JD-Dev & Server-Admin
Closed Thread

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 22:06.
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.