Author Topic: Reg-Ex for RSS Filters  (Read 3882 times)

Offline therealjoeblow

  • Contributor
  • ***
  • Posts: 87
Reg-Ex for RSS Filters
« on: May 05, 2021, 01:27:47 am »
Hi,

There are a lot of TV shows that are posted 2x, once with the following format:

Code: [Select]
Show.S01E01.1080p.DD5.1.x264
...and another of the exact same episode but with the title in the subject line:

Code: [Select]
Show.S01E01.Title.of.Episode.1080p.DD5.1.x264
I'm using a filter of the following format to grab these:

Code: [Select]
Show*S01*1080p*264* | A
Problem is obviously that this is grabbing all of the duplicates unnecessarily.  I can't seem to think of a simple way to grab only one or the other.  However, with Reg-Ex filtering it would be very easy to only grab the ones without the title in them as follows:

Code: [Select]
Show*S01([0-9]{1,2}).1080p*264* | A
That will get every occurrence of Show.S01E01.1080p.DD5.1.x264 while ignoring anything that has any text of any kind between the Episode Number and 1080p.

Is it possible to add Reg-Ex filtering to the search logic?

Many thanks for the consideration!
TRJB

Offline Rdl

  • Administrator
  • *****
  • Posts: 4050
Re: Reg-Ex for RSS Filters
« Reply #1 on: May 22, 2024, 09:47:52 pm »
Quote
Whatever.2024.S01E[0-9][0-9]*DV* | A
is a valid filter