[pmwiki-users] TextExtract (Search recipe) update

Oliver Betz list_ob at gmx.net
Thu Sep 10 04:35:31 CDT 2009

Hans wrote:

>> Excuse my ignorance, I don't know the problem with "highlighting two
>> words of an AND condition" compared to "highlighting two words of an
>> OR condition".
>At present TextExtract search term input is passed as
>a regular expression, more or less.
>So input ABC|XYZ will look for ABC OR XYZ, and each term will  be
>separately highlighted.
>But input ABC XYZ will look for one string "ABC XYZ", not look to see
>if both are present anywhere in the page, or paragraph, or line.

couldn't you re-use the PmWiki search mechanism?

But maybe it's more efficient to extend the PmWiki search to output
the words in context.


More information about the pmwiki-users mailing list