Page 1 of 1

Regex $ match not working?

Posted: April 17th, 2010, 6:58 am
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.

Re: Regex $ match not working?

Posted: April 17th, 2010, 11:50 am
by jcfp
In regexp $ means the end of a string. Therefore, 're:$name' by definition cannot match anything.

Re: Regex $ match not working?

Posted: April 17th, 2010, 6:32 pm
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