[Soks] non-greedy regexps in automatic summary

[Soks] non-greedy regexps in automatic summary

Copied from Email on Sat, 12 Mar 2005 16:37:38 -0500 from Bil Kleb (Bil.Kleb@nasa.gov)

Hello,

I am wondering about the purpose of the non-greedy
regular expressions in the automatic summary, viz,

        if @wiki.exists? @settings[:pagename]
            old_page = @wiki.page( @settings[:pagename] )
            if old_page.textile =~ /(.*?<automaticsummary>).*?(<\/automaticsummary>.*)/mi
                content, tail = $1, $2
            end
        end

I am getting cases where folks are losing their
head/tail area edits to existing summary pages.
(The pages are getting reset to the bare blank
header/tail summary page.)

Regards,
--
Bil Kleb
http://fun3d.larc.nasa.gov
_______________________________________________
Soks-discuss mailing list
Soks-discuss@rubyforge.org
http://rubyforge.org/mailman/listinfo/soks-discuss

Edit this page or watch for changes using RSS.