Regexp broken, this time for real.

Get answers to your Shareaza related problems.
Forum rules
Home | Wiki | Rules

Regexp broken, this time for real.

Postby tharrison1 » 17 Sep 2010 00:08

To beef up my security filters, I did a search for "foo bar" audio, so that every result would be guaranteed to be spam. What slipped through my existing filters was this:

foo bar [club mix].mp3
08 - foo bar.mp3
08 - foo bar.mp3
08 - foo bar.mp3

Now, the 08s I can't do anything about without false positives but I should be able to safely get rid of the first one with

.*( [club mix]\.mp3)$

right?

Wrong. No apparent effect at all. Okay, maybe square brackets need escaping?

.*( \[club mix\]\.mp3)$

Still nothing.

What's up with that?
tharrison1
 
Posts: 79
Joined: 04 Sep 2010 22:47

Re: Regexp broken, this time for real.

Postby cyko_01 » 17 Sep 2010 03:40

User avatar
cyko_01
 
Posts: 938
Joined: 13 Jun 2009 15:51

Re: Regexp broken, this time for real.

Postby tharrison1 » 17 Sep 2010 07:51

Neither change has any effect.
tharrison1
 
Posts: 79
Joined: 04 Sep 2010 22:47

Re: Regexp broken, this time for real.

Postby cyko_01 » 17 Sep 2010 12:54

User avatar
cyko_01
 
Posts: 938
Joined: 13 Jun 2009 15:51

Re: Regexp broken, this time for real.

Postby tharrison1 » 17 Sep 2010 16:38

Security window, and reg exp is checked.
tharrison1
 
Posts: 79
Joined: 04 Sep 2010 22:47

Re: Regexp broken, this time for real.

Postby tharrison1 » 17 Sep 2010 18:43

Here's another one that should work, but doesn't:

^(Crack for - ).*(\.zip)$

"Crack for - foo bar.zip" doesn't get removed by this, but should.
tharrison1
 
Posts: 79
Joined: 04 Sep 2010 22:47

Re: Regexp broken, this time for real.

Postby old_death » 20 Sep 2010 17:47

I'm not sure whether a change to the security window content is directly applied to the content of the search window. You might want to try to use the search filter to test your regEX code and afterwards add it to your security window. Then, the results shouldn't show up anymore the next time you do that search.
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Regexp broken, this time for real.

Postby tharrison1 » 20 Sep 2010 17:53

It does apply immediately to searches that are open.
tharrison1
 
Posts: 79
Joined: 04 Sep 2010 22:47

Re: Regexp broken, this time for real.

Postby cyko_01 » 20 Sep 2010 22:17

User avatar
cyko_01
 
Posts: 938
Joined: 13 Jun 2009 15:51

Re: Regexp broken, this time for real.

Postby old_death » 21 Sep 2010 10:32

Is there a bug report for this?
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Regexp broken, this time for real.

Postby cyko_01 » 21 Sep 2010 12:58

User avatar
cyko_01
 
Posts: 938
Joined: 13 Jun 2009 15:51


Return to Help and Support

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron