View Single Post
Old 04-05-2014, 06:24 AM  
brackebuschtino
Member
 
Join Date: Feb 2012
Location: /dev/null
Posts: 40
Default

Thanks for the update. I get at least more matches, but not (yet) the desired behavior. When testing the pattern with an online PCRE regex tester i discovered a potential reason for that.
Given these two folders
Code:
/subdir/subdir/.../Author1_-_Title1_(1234)-Publisher1
/subdir/subdir/.../Author2_-_Title2_(5678)-Publisher2
And given this regex
Code:
rx .*-(?!publisher1)
i would expect that the second folder would be highlighted in red, but in fact both folders are highlighted because the whole path
Code:
/subdir/subdir/.../Author1_-_Title1_(1234)-Publisher1
/subdir/subdir/.../Author2_-_Title2_(1234)-Publisher2
matches this pattern.

The desired behavior is this:
Code:
/subdir/subdir/.../Author1_-_Title1_(1234)-Publisher1
/subdir/subdir/.../Author2_-_Title2_(1234)-Publisher2
Also, is there an explanation available explaining how the different regex scopes are evaluated? I mean, i would love to understand how the evaluating routine expects to see the line to be evaluated. Get what i mean? Or differently: Beginning from where up to where is the path that is evaluated for "Name of File" pattern? Same for the other patterns. Understanding this would help to build working patterns. Sometimes is only one missing character or character to much that might prevent a pattern from working. And since there is no way to debug the programm searching for the reason might become a search for the needle in a haystack.

Last edited by brackebuschtino; 04-09-2014 at 11:24 AM.
brackebuschtino is offline