Page 1 of 1

Par file filter

PostPosted: Mon Jun 21, 2004 5:33 pm
by shivohum
Hi. Does anyone know how I would set up an accept filter for only those subjects that included .par or .par2 or .PAR or .PAR2, etc. but that would NOT accept simply ".part" unless it ALSO had .par/.par2/etc. separately?

So I would want x.par and x.pAr2 and x.part.par to be accepted but not simply x.part

Thanks.

PostPosted: Mon Jun 21, 2004 8:37 pm
by dexter
Try \.par[2 ]

There is a space after the 2 to catch par2 or par

PostPosted: Tue Jun 22, 2004 8:31 pm
by Smite
Can we get full regex in v5? :)

PostPosted: Tue Jun 22, 2004 10:37 pm
by dexter
Find Quade a good regex library to link in and it is a possiblility.

PostPosted: Tue Jun 22, 2004 10:57 pm
by DThor
http://research.microsoft.com/projects/greta/

has got some glowing reviews, although I completely forget what Q's coding in...C++?

Of course the best solution(but more work) would be something not quite so tied to windows... finding out what this guy did would probably be pretty useful...in addition to this program being quite kewl. Also, this is a similar, free work of pure regex passion with some good links on the page too...

DT

PostPosted: Tue Jun 22, 2004 11:19 pm
by dexter
Good links. Maybe itimpi's next plugin project can incorporate it. The plugin could have some external interface, like a web interface maybe, where you can set a regex then, when you download headers with newsbin, the plugin will apply the filter and you only see headers matching the regex in the post list.