[pmwiki-users] Re: Wiki Calendar

Patrick R. Michaud pmichaud at pobox.com
Thu Feb 10 16:28:33 CST 2005


On Thu, Feb 10, 2005 at 05:16:35PM -0500, Manish Ranade wrote:
> I tried [:upper:][0-9] in PageTitlePattern, it didnt work but it worked when I
> changed 
> 
> $PageTitlePattern="[[:upper:]][[:alnum:]]*(?:-[[:alnum:]]+)*";
> 
> to 
> 
> $PageTitlePattern="[[:upper:][:alnum:]][[:alnum:]]*(?:-[[:alnum:]]+)*";


You almost certainly want:

  $PageTitlePattern="[[:upper:]0-9][[:alnum:]]*(?:-[[:alnum:]]+)*";

as the one you've chosen allows pagenames beginning with a lowercase
letter.  Note the bracketing of [[:upper:]0-9] (which I'm guessing
you had wrong when you changed it earlier).

I'm pretty sure you can also use

  $PageTitlePattern="[[:upper:][:digit:]][[:alnum:]]*(?:-[[:alnum:]]+)*";

if the 0-9 doesn't work out.

Pm



More information about the pmwiki-users mailing list