[pmwiki-users] Re: Wiki Calendar

Manish Ranade manish at thunderdata.com
Thu Feb 10 16:54:17 CST 2005


yeah, I changed $PageTitlePattern to
$PageTitlePattern="[[:upper:]0-9]][[:alnum:]]*(?:-[[:alnum:]]+)*";

Thanks


"Patrick R. Michaud" <pmichaud at pobox.com> wrote:

> 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
> 
----------------------------------------------------------
Manish Ranade
Web Programmer

Thunder Data Systems
Phone: 361.883.6464





More information about the pmwiki-users mailing list