[Pmwiki-users] Re: Page name pattern
Patrick R. Michaud
Thu Nov 25 08:33:42 CST 2004
[Pm continues catching up on old emails...]
On Sun, Oct 31, 2004 at 09:07:47PM +0100, chr at home.se wrote:
> On Sun, 31 Oct 2004, Patrick R. Michaud wrote:
> > Yes, this is now default in 2.0 (to better support calendar pages).
> What is the pattern for page names these days?
> * Practical interpretation
> * reg-exp
> * which variable?
The pagename pattern is held in $NamePattern, the default value is
$NamePattern = '[[:upper:]\\d][\\w]*(?:-\\w+)*';
which basically says that a page name begins with a digit or
uppercase letter, followed by any sequence of letters, numbers,
underscores, and non-consecutive hyphens.
More information about the pmwiki-users