#1
|
|||
|
|||
How i create a filter that block....
Hi.
I want to create a filter that i want to block all the links contains(Anywhere at the link) the specific word. And how i can to the same filter put more than one word? |
#2
|
||||
|
||||
settings > linkgrabber filter > filter rule && regular expression? (ab|bc|cd)
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
||||
|
||||
don't forget to enable regex checkbox on the right side
(test|house|game) test or house or game
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
With space?
Like it is your example? |
#5
|
||||
|
||||
Quote:
Quote:
__________________
JD-Dev & Server-Admin |
#6
|
|||
|
|||
With that syntax you mention doesn't work.
Only with the syntax without any space it work. For example: Home|tv if i enter it like you say: home | tv simply DOESN'T WORK at least at test url space you have. Last edited by Agnostos; 11.07.2019 at 03:58. |
#7
|
||||
|
||||
You can test your pattern here
regex101.com The syntax is correct but I still don't know what you're trying to do Please provide an example url and tell us what you want to achieve.
__________________
JD-Dev & Server-Admin |
#8
|
||||
|
||||
I'm sorry but your example doesn't make any sense?!
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
Is simple.
I want every link has the word tv or home anywhere at the url link simply filter block it. |
#10
|
||||
|
||||
in link(url) or filename?
__________________
JD-Dev & Server-Admin |
#11
|
|||
|
|||
At both and mostly at the link.
|
#12
|
||||
|
||||
sourceURL - contains .*(home|tv).*
enable the regex checkbox on the right
__________________
JD-Dev & Server-Admin |
#13
|
|||
|
|||
Already did but with space doesn't work.
Work only WITHOUT any space between the words I want to block. Again For example(it work) : Home|tv if i enter it like you say(doesn't work) : home | tv |
#14
|
||||
|
||||
URLs cannot have spaces! space in an URL is either '+' or '%20'
so pattern must look like .*(home(\+|%20)?|tv(\+|%20)?).*
__________________
JD-Dev & Server-Admin |
#15
|
|||
|
|||
What????
Then why the syntax of words I write above it work fine and is block normal all the links with words tv or home? And all the syntax you mentioning at your last post it really toooooooo complicated |
#16
|
||||
|
||||
It's normal regex/pattern,
en.wikipedia.org/wiki/Regular_expression How about providing real example links? you've asked to block home and tv with and without space, just tested it in regex101.com
__________________
JD-Dev & Server-Admin |
#17
|
|||
|
|||
No I NEVER say and I say or.
For example I want to block words may have either link Home or TV or series e.t.c. |
#18
|
||||
|
||||
.*(home|tv|series|nice|super|wow).*
__________________
JD-Dev & Server-Admin |
#19
|
|||
|
|||
Again no.
I put. Only that without .* test|house|game And it worked fine. |
#20
|
||||
|
||||
Again no what? my pattern also works fine
how about providing example links? I can only create own test links and those work fine for me
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|