[Pmwiki-users] DevQ: $PageTitlePattern

Patrick R. Michaud pmichaud
Mon May 24 15:35:31 CDT 2004


Hyphens and underscores are allowed in free links, but the default
pattern tries to avoid pathological cases of having sequences
of multiple hyphens, spaces, and underscores.  If you're
willing to lift that restriction, you can do the following
in config.php:

<?php
$GroupFreeLinkPattern="{{(?>(?:($GroupNamePattern)([.\\/]))?([[:alpha:]][-\\w\\s]*)(?:\\|([-\\w\\s]*))?)}}((?:-?[[:alnum:]]+)*)";
$FreeLinkPattern = $GroupFreeLinkPattern;
?>

The links you mention below would then work.  Note that they
will be treated as equivalent links, since (for historical
reasons) PmWiki treats spaces and underscores as equivalent.

Pm


On Mon, May 24, 2004 at 02:43:15PM -0400, Lloyd Budd wrote:
> How would I customize pmwiki to allow  '- ' and '_' in free links ?
> 
> examples :
> 
> {{EDU - I can program -  Intro to Linux Programming}}
> {{EDU_-_I can program - Intro to Linux Programming}}
> 
> Thank you ,
> Lloyd
> 
> 
> -- 
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com



More information about the pmwiki-users mailing list