![]() Registered Member ![]()
|
I use KTorrent's RSS to download new episodes of favourite series. But I have a problem with writing good regexp.
For example, RSS includes usual and hd versions of episodes:
If I want HD, I can use something like Fringe.*720p as a filter. But how to write regular expression for filter to download non-hd version? Something like Fringe.*[^(720p)] doesn't work. Maybe it's a bug? |
![]() Moderator ![]()
|
Negative lookahead:
Foo(?!.*Bar) Means Foo followed by anything but Bar |
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
Thanks, but how to match "foo" (anywhere) but neither "bar" nor "club"?
I've tried *foo*(?!.*bar*|*club*) and *foo*(?!.*bar*)|(?!.*club*) and also read through http://www.regular-expressions.info/quickstart.html without any joy. Thanks |
![]() Registered Member ![]()
|
I think that
.*foo(?!.*bar|.*club) seems to work |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]