RegEx with dif of lower and upper case doesn't work

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
SteMo

RegEx with dif of lower and upper case doesn't work

Post by SteMo »

Well, I liked to filter a special URL structure like

http[s]://sub.domain.top/ABCDEFG/url/goes/on*

with

/[A-Z]+/ or /[A-Z]{3,}/

But this filters quite anything, not only capitals. :(
Seams to be a bug.
Sergei Z

Post by Sergei Z »

what u r probably missing here is turning Option IgnoreCase to ON (true). If u do that then u can match/filter on those ABCDEF by using pattern

[A-Z]+ or [A-Z]{3,}

it should match on upper case chars then. Other wise it'll match on everything incl. lower case.

if u want to include backslashes into yr pattern, then u most likely need to escape them:

\/[A-Z]+\/ (flavor .NET)
SteMo

Post by SteMo »

Sergei Z wrote:what u r probably missing here is turning Option IgnoreCase to ON (true). If u do that then u can match/filter on those ABCDEF by using pattern
Well, I have not such an option in the preferences. Where should it be? Should I search it in "about:config"?
I use Firefox 1.5 (DE) with Adblock Plus 0.5.11.1 (DE).
Sergei Z

Post by Sergei Z »

sorry cannot help you here, I dont use Firefox and Adblock. I'm sure though the regex engine u r using must have such common option as IgnoreCase.
SteMo

Post by SteMo »

Sergei Z wrote:sorry cannot help you here, I dont use Firefox and Adblock. I'm sure though the regex engine u r using must have such common option as IgnoreCase.
Well, that's what I meant to say. ;) If there is such an option, it's not documented, linked or activated and should be! If not, I think it's a bug which has to be fixed.
Locked