[pmwiki-users] Problem with $SearchPatterns

Petko Yotov 5ko at 5ko.fr
Sun Jun 29 08:40:52 CDT 2008

On Sunday 29 June 2008 15:22:32 Petko Yotov wrote:
>  $SearchPatterns['default'][] ="/^(De|CRM|FAQ|Glossar)\\./"; # allowed
>  $SearchPatterns['default'][] ="!^P.*\\.!"; # excluded
> The last one, ^P.*\\. is actually what you need as you wish to exclude
> groups starting with P, e.g. P0034, P0056 (and not ^P\. which excludes only
> the group "P").

Actually, the "exclude" $SearchPattern is not needed, because in our case, the 
first one already limits the search to the groups listed in the first 

If (contrary to what I first believed) you want to *include* groups starting 
with P, e.g. P0034, P0056, you would use just one expression like:
 $SearchPatterns['default'][] ="/^(De|CRM|FAQ|Glossar|P.*)\\./";


More information about the pmwiki-users mailing list