Re: Content filter and regex flags

Kragen Sitaker <[email protected]> Wed, 26 Nov 2003 14:01:56 -0800
Newsgroups gmane.comp.web.mod-pubsub.devel
Message-ID <[email protected]>
On Thu, Nov 27, 2003 at 08:03:34AM +1100, Robert Leftwich wrote:
> I'm using kn_content_filter to specify some server-side filtering and in 
> some cases the filter regex will only work if some additional flags are 
> specified when compiling it (e.g. DOTALL, MULTILINE mode, etc). To do this 
> I added a new kn_content_filter_flags element which can be used to specify 
> the required combination of flags (in integer form) which, if present, is 
> passed to the call to re.compile() in pubsub.py.

Can't you just use "(?m:some$^regex)"?


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/