Page 1 of 1

Filter won't accept regexp

PostPosted: Sun Sep 07, 2003 12:17 pm
by Takamatsu
Okay, I have tested this string in the filter bar, and it works, but when I try to add this to the File Filters, it refuses to add.

JUBEI.CHAN(.|..|...)(0[1-9]|1[0-3])

I tried this and this adds successfully
JUBEI.CHAN.(0[1-9]|1[0-3])


Any ideas?

Basically I'm trying to compensate for misc characters between the title "Jubei Chan" and the episode number (1-13)

For example... I want to filter out "Jubei-chan - Ep 13" but not
"Jubei-chan 14"

PostPosted: Sun Sep 07, 2003 12:46 pm
by Quade
Use ".*" between the sections.

"JUBEI.CHAN.*(0[1-9]|1[0-3])" Should work (I didn't test though).

Typically in this case I use a simple "Find" like "JUBEI". then mark the ones I don't want and hit the delete key. Or I column sort to get them in episode order.

PostPosted: Sun Sep 07, 2003 9:24 pm
by Takamatsu
Okay... the problem with this.

I am putting this in the "Reject File Filters"

JUBEI.CHAN.*(0[1-9]|1[0-3])

The idea is to eliminate episodes 1-13... so episode #14 gets posted.

Here's a sample subject line.

Jubei-Chan Full Repost [15/26] - "Jubei-Chan - Ep 14 [P-A].part12.rar" yEnc (01/51)

This like would be rejected because of the 12, even if I really wanted this line.
I'm only concerning about this, if I leave the robot running in auto mode, when I have to leave the computer for a extended period of time. (My ISP only offers a one day retention, so I sorta start panicing when I have to leave for a weekend)

PostPosted: Sun Sep 07, 2003 10:43 pm
by Quade
Why not just put "Jubei-Chan - Ep 14" in the reject filter?

PostPosted: Mon Sep 08, 2003 3:02 am
by Smite
Takamatsu wrote:Okay... the problem with this.

I am putting this in the "Reject File Filters"

JUBEI.CHAN.*(0[1-9]|1[0-3])

The idea is to eliminate episodes 1-13... so episode #14 gets posted.

Here's a sample subject line.

Jubei-Chan Full Repost [15/26] - "Jubei-Chan - Ep 14 [P-A].part12.rar" yEnc (01/51)


Does:
JUBEI.CHAN..?.?(0[1-9]|1[0-3]) fit the bill?

Usually there's a pretty consistant naming convention for the eps, and you should be able to find a way to tell which is the ep number, such as:
"Jubei-Chan - Ep (0[1-9]|1[0-3])" or "Jubei-Chan.*(0[1-9]|1[0-3]) \[P-A"

PostPosted: Mon Sep 08, 2003 10:06 am
by Takamatsu
Quade wrote:Why not just put "Jubei-Chan - Ep 14" in the reject filter?


Because I WANT episode 14, not reject it.

Often file names from posting of one episode do not match postings of another episode.

Besides... my true problem isn't the regexp itself...

It's that the program refuses to add it to the reject list.

The question is...

Does the program sort of compare the regexp rule against preexisting ones? Because after I have added about 10 rules, it stops allowing me to add some.

PostPosted: Mon Sep 08, 2003 12:02 pm
by Quade
If they're invalid regex then you can't add them. I know I've had more than 10 in there. I'll have to experiment with it.

PostPosted: Mon Sep 08, 2003 9:12 pm
by Takamatsu
Okay... to make it simple, I'll post my regexp list, straight from my Filters.xml

DRAGON.DRIVE[ -]+([0-2][0-9]|3[0-8])
EVANGELION.(0[1-9]|1[0-9]|2[0-6])
FUSHIGI.YUUGI[ -_]+EP.([0-4][1-9]|5[0-2])
GUNDAM.*SEED[.]*([0-3][0-9]|4[0-6])
JUBEI.CHAN[ -]+EP.(0[1-9]|1[0-3])
KODOCHA[ -]+(00[1-9]|01[0-9]|02[0-3]|02[5-9]|03[0-5]|05[2-8]|06[0-4]|08[2-3])
NGE.(0[1-9]|[1][0-9]|2[0-6])
RUROUNI.KENSHIN
SAMURAI.GIRL[ -]+(0[1-9]|1[0-3])
ULTRA.MANIAC.([0][0-9]|1[0-3])

Now I'm trying to add this reg exp

INUYASHA[ -]+([0-9][0-9] |1[0-1][0-9]|1[2][0-2])

and it refuses to add it.

I remove one of the above, and it accepts it.

PostPosted: Fri Sep 12, 2003 10:56 pm
by Takamatsu
Any news about this problem? Should I post it as a problem in Tech Support?

PostPosted: Sat Sep 13, 2003 12:34 am
by Smite
No, I think there's a known problem somewhere in there. A combination of complexity of regex, and number of filters.

PostPosted: Sat Sep 13, 2003 1:36 am
by Quade
State machine gets too bug for the allocated storage.

PostPosted: Sat Sep 13, 2003 10:24 am
by Takamatsu
So best way to resolve it is to not to get too complicated with the regexp? I'll try and see what works.

Thanks.

PostPosted: Sat Sep 13, 2003 11:08 am
by Quade
I'm looking at it too, to see if I can increase the space and not break anything.

PostPosted: Sat Oct 15, 2005 9:48 pm
by Stork
I am putting this in the "Reject File Filters"

JUBEI.CHAN.*(0[1-9]|1[0-3])

The idea is to eliminate episodes 1-13... so episode #14 gets posted.

Here's a sample subject line.

Jubei-Chan Full Repost [15/26] - "Jubei-Chan - Ep 14 [P-A].part12.rar" yEnc (01/51)

wouldn't JUBEI.CHAN.*(0[1-9]|1[0-3]) possibly get cought up in the [15/26] after repost or (01/51) near the end of the subject?

better would be if it was "JUBEI.CHAN.EP (0[1-9]|1[0-3])" minus quotes of course.

PostPosted: Sat Oct 15, 2005 9:51 pm
by Smite
Not if it's a "File Filter". The filenames does not include any of those extra numbers.