On Thu, Nov 08, 2007 at 08:08:07PM +0000, Hans wrote: > Thursday, November 8, 2007, 7:42:06 PM, Patrick R. Michaud wrote: > > > $SearchPatterns['homes'][] = > > "/^($GroupPattern)\.(\$1|$DefaultName)$/"; > > > and then (:pagelist list=homes:) returns a list of any group "home" > > pages that fit the Group.Group or Group.$DefaultPage naming pattern. > > Sorry, it does not. When a $DefaultName is set, then it shows those > $DefaultName pages. When it is not set, it shows HomPage pages. > It does not show GroupA.GroupA kind of group default pages. > Maybe the $1 should do this, but it fails.
Ah, yes, PCRE doesn't understand the $1 syntax, it's still using the older \1 syntax. Try this one instead (demonstrated at http://www.pmwiki.org/wiki/Test/HomeList ): $SearchPatterns['homes'][] = "/^($GroupPattern)\\.(\\1|$DefaultName)$/"; Pm _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
