Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Which flavor/syntax of Regex does Synology/Download Station use?

As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...

535
200
NAS
DS212J, DS214play, DS216, DS216play, DS414, DS918+, RS212, RS816, RS819, DS223, DS920+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. iOS
The Download Station RSS feed download filter offers the option of using regular expressions to specify searches.
But it is not clear (at least to me) which flavor of regular expressions it uses. I am particularly interested in word boundaries, which, in different flavors, can be indicated by \< and \>, or by \b, or any number of other means, depending which regex (java, gnu, unix, etc.) you're using.

I've been experimenting, and can't find any any that actually work. Does anyone know?

Thanks!
 
Maybe you can find something here ?
 
That wasn't much help, but I did find that Download Station seems to do the search fields perversely. The way it SHOULD work, in my opinion, is that when you Add a new filter, the "Name" should be the name of the filter, for reference only, with no actual function.

Then, "Matches" should be your regular expression, for example ^\<Stream\> , which would mean "the word Stream at the beginning of the line, so not Streaming or ExStream".

And then when you press "Test Filter," it should take you to a test that allows you to see if ^\<Stream\> matches some arbitrary string you choose as a test string. But that's not what it does. Instead, it moves ^\<Stream\> into the "Matches" field, which is backwards - it should be in the "Testing title" field. Or rather, the "Matches' and "Testing Title" fields are both mislabeled, and should be the other way around. But in any event, it's moving your regex expression into the wrong field.

So if you move ^\<Stream\> into the "testing titles" field, and enter "Stream" into the "Matches" field, you get the correct test results. But what a pain in the ass.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Popular tags from this forum

Thread Tags

Tags Tags
station

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending content in this forum

Back
Top