Regex $ match not working?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
young-einstein
Newbie
Newbie
Posts: 37
Joined: January 15th, 2010, 9:41 am

Regex $ match not working?

Post by young-einstein »

Hi all,

I'm still not sure whether this is a bug, or something which I'm just not doing right?

I'm trying to use the filter 're:$name' ... so that it automatically downloads files by certain groups, but when I preview the feed, it just doesn't seem to be matching anything?

[And yes, there are definitely results in the feed which it should match.]

If I try and use any wildcards in the string - either before or after the $ - it seems to crash the whole feed, and just gives me an error saying "Request unsuccessful."

Any ideas / suggestions?

FWIW - I'm running 0.5.1RC2 on Ubuntu Linux.
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: Regex $ match not working?

Post by jcfp »

In regexp $ means the end of a string. Therefore, 're:$name' by definition cannot match anything.
young-einstein
Newbie
Newbie
Posts: 37
Joined: January 15th, 2010, 9:41 am

Re: Regex $ match not working?

Post by young-einstein »

jcfp wrote: In regexp $ means the end of a string. Therefore, 're:$name' by definition cannot match anything.
OK ... so I had the syntax the wrong way 'round.  Seems pretty obvious now, but oh well ...

're:name$' does exactly what I want it to, so thanks for that! ;)

--David
Post Reply