can't filter s001-001.jpg files

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

can't filter s001-001.jpg files

Postby QuantumShadow » Sun Aug 08, 2004 6:39 am

Hi I am trying to filter files which look like this
s001-001.jpg
s002-002.jpg
etc..
I entered
s[0-9]{1,3}-[0-9]{1,3}\.jpg

into "reject filname filter"
but they are still being downloaded.
what am i doing wrong?
please help.
QuantumShadow.
User avatar
QuantumShadow
Active Participant
Active Participant
 
Posts: 65
Joined: Wed Aug 21, 2002 4:13 am

Registered Newsbin User since: 04/19/03

Postby Quade » Sun Aug 08, 2004 9:28 am

I don't believe "{1-3}" works.

Instead enter it as:

s[0-9][0-9][0-9][-][0-9][0-9][0-9]\.jpg

I just bracket the "-" because I'm paranoid. I might be switching to a new RE package in 5. It's what I use in AutoRAR.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby QuantumShadow » Sun Aug 08, 2004 9:38 am

Thanks Quade, i will test this now,
as for new RE in 5, will u add them to "lockout poster" filters too?
User avatar
QuantumShadow
Active Participant
Active Participant
 
Posts: 65
Joined: Wed Aug 21, 2002 4:13 am

Registered Newsbin User since: 04/19/03

Postby QuantumShadow » Sat Aug 14, 2004 8:59 am

Quade, I tryed the

s[0-9][0-9][0-9][-][0-9][0-9][0-9]\.jpg

filter, but i still have files like

s001-062.jpg

where downloaded, whats happening how can check why is this file passes the filters?

Thanks,
QuantumShadow
User avatar
QuantumShadow
Active Participant
Active Participant
 
Posts: 65
Joined: Wed Aug 21, 2002 4:13 am

Registered Newsbin User since: 04/19/03

Postby Quade » Sat Aug 14, 2004 9:58 am

What filter are you using? Filename or subject? If it's a subject filter and you DON'T have "Ignore Filters" checked, you shouldn't even see this file.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby QuantumShadow » Sat Aug 14, 2004 10:06 am

I use both reject filename AND reject subject filters,
and this pattern apperas also in both places in the post.
I have "Ignore Filters" checked, but as i understand it should affect only what i see in the "Post List" window, not what is really downloaded.

What else can be wrong?
User avatar
QuantumShadow
Active Participant
Active Participant
 
Posts: 65
Joined: Wed Aug 21, 2002 4:13 am

Registered Newsbin User since: 04/19/03

Postby itimpi » Sat Aug 14, 2004 10:09 am

Have you tried unchecking the Ignore Filters to see if they get hidden from the Post List? If not they will not function as Filename filters either.
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12604
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

Postby QuantumShadow » Sat Aug 14, 2004 10:29 am

Itimpi, I double checked this and "Ignore files" affects only the "post list"
but not what actually being downloaded.
What i see now is very strange: some files with the pattern s001-062.jpg
are being filtered while other somehow get through,
how can it be? i can't think of a test to nail it down.
User avatar
QuantumShadow
Active Participant
Active Participant
 
Posts: 65
Joined: Wed Aug 21, 2002 4:13 am

Registered Newsbin User since: 04/19/03

Postby itimpi » Sat Aug 14, 2004 10:44 am

I know that the Ignore Filters only affects the Post List. The point I was making is that if a filter is not working on the Post List it is unlikely to work as a Filename Filter. It is a lot quicker to test it against the Post List as one can try ticking/unticking the Ignore Filters box to see the effect. Another possibility is to work the other way around and put the filter expression into the Find Box on the Filter bar with the Filter set to None. That way you see exactly what the filter expression matches.
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12604
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

Postby Quade » Sat Aug 14, 2004 10:50 am

You're using automatic download mode then? If so, are you sure the profile you're adding the filters to has been assigned to the group? In automatic mode, only the filter profile assigned to the group is applied to the group during download.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby QuantumShadow » Sat Aug 14, 2004 10:54 am

Thanks Itimpi!
I didn't know about this great feature!
I used it and this is the result:
File with subject:
"Missy 289 (94/96) s288-094.jpg 83 yenc (1/1)"
has status "subject filtered" on 02 aug

but file with subject
"ShM 291 (001/110) s291-001.jpg 118 yenc (1/1)"
has status Downloaded/deleted on the same 02 Aug

How did it get through?
And even more strange facts on 09 Aug, file with name:
"ShM 238 and 239 for Model Fan - File 006 of 177 - s238-006.jpg (1/1)"
has status "subject filtered"

Whats happening here?
User avatar
QuantumShadow
Active Participant
Active Participant
 
Posts: 65
Joined: Wed Aug 21, 2002 4:13 am

Registered Newsbin User since: 04/19/03

Postby QuantumShadow » Sat Aug 14, 2004 10:56 am

Quade wrote:You're using automatic download mode then? If so, are you sure the profile you're adding the filters to has been assigned to the group? In automatic mode, only the filter profile assigned to the group is applied to the group during download.


Yes I add this to the filter profile connected to the group.
User avatar
QuantumShadow
Active Participant
Active Participant
 
Posts: 65
Joined: Wed Aug 21, 2002 4:13 am

Registered Newsbin User since: 04/19/03

Postby itimpi » Sat Aug 14, 2004 10:58 am

All those look like valid matches against the "Find criteria". The one with status Downloaded/Deleted matches the Find critieria - I assume that this takes precedence from a status display perspective. I would expect that all of these would therefore be successfully rejected with the expression as a reject filter.
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12604
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

Postby QuantumShadow » Sat Aug 14, 2004 11:02 am

Quade, Itimpi does NB has any log that i can enable and maybe there I will be able to find more details?
User avatar
QuantumShadow
Active Participant
Active Participant
 
Posts: 65
Joined: Wed Aug 21, 2002 4:13 am

Registered Newsbin User since: 04/19/03


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests