Re: Odd Regex behavior in oro 2.0.8 lib

"Daniel F. Savarese" <[email protected]> Sat, 10 Jun 2006 13:20:45 -0400
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
In message <[email protected]>, CJ Jouhal 
writes:
>Pattern m_forbiddenTagsWithContentPattern =
>s_perlCompiler.compile(
>				
>"<(script|object|applet|style|noscript)[^>]*>[\\s\\S]*?</\1[^>]*>",
>					Perl5Compiler.CASE_INSENSITIVE_MASK
>						| Perl5Compiler.READ_ONLY_MASK)
>;

A simple typo.  The "\1" needs to be "\\1".

daniel

-#-#-#-#-| Sleep and The Traveller |-#-#-#-#-#-#-#- http://www.savarese.org/
In distant lands, I hear the call of my home.     #     s a v a r e s e
Yet my work is not done.  My journey's just begun.-    software research
 -- http://www.sleepandthetraveller.com/          # http://www.savarese.com/