[pmwiki-users] Filtering searches

Ian MacGregor lists at imacgregor.com
Fri Jul 13 10:46:31 CDT 2007



On Friday 13 July 2007 8:40:53 am Patrick R. Michaud wrote:
> On Fri, Jul 13, 2007 at 08:23:48AM -0700, Ian MacGregor wrote:
> > I know I can keep the PmWiki group from appearing in search results with:
> >
> > $SearchPatterns['normal'][] = '!^PmWiki\\.!';
> > ...
> > Is it something like:
> >
> > $SearchPatterns['normal'][] = "!^$Group.HomePage!";
>
>   $SearchPatterns['normal'][] = '!\\.HomePage$!';
This works great :)

>
> I think, but I'm not certain, that one can also use wildcard
> patterns (instead of regexes) in $SearchPattern.  So
> perhaps the following works also:
>
>   $SearchPatterns['normal'][] = '-*.HomePage';
This seems to work great too.

Thank you,
Ian MacGregor

>
> Pm



More information about the pmwiki-users mailing list