[Filterproxy-devel] Re: FilterProxy, regexes, and the "i" switch
Brought to you by:
mcelrath
|
From: Bob M. <mce...@dr...> - 2002-03-25 04:43:24
|
Brian [bjm...@ui...] wrote:
> I've been playing around with FilterProxy for a few hours now, and I=20
> must say, it's a great package you have here. In fact, I only have one=
=20
> problem: I was tailing the log and I noticed that the "i" regex switch=
=20
> throws an error. It looks like they're case-insensitive anyway, so I=20
> just removed the offending i, but I never would have noticed if I wasn't=
=20
> paying attention to the logs.
Did you try to make a rule like this:
tag </(frame|script)/i>
?
That won't work...the code that grabs out the regex is pretty dumb. It just
looks for /(stuff)/ and doesn't try to grab any modifiers. The modifiers
applied to FilterProxy regexes by default are "isx". (i because html is ca=
se
insensitive, s because the whole file is matched against, and x for obvious
reasions -- see the ADS rule) Allowing modifiers wouldn't be terribly
useful... (which modifier would be useful?)
I'll make a note about modifiers in the Rewrite html file.
> Oh, one other little problem: I created a rewrite rule without a name,=
=20
> and now it doesn't show up in the menus and I can't delete it. I'm=20
> about to hack the config file by hand, wish me luck ;-)
>=20
> Thanks for the great code!
You're welcome! :)
Cheers,
-- Bob
Bob McElrath (rsm...@st...)=20
Univ. of Wisconsin at Madison, Department of Physics
|