[Pmwiki-users] Free link questions

Patrick R. Michaud pmichaud at sci.tamucc.edu
Mon Mar 17 20:26:49 CST 2003


On 18 Mar 2003, John Rankin wrote:

> 
> > 2. - and | in combination
> > {{hyphenated-|page}}links doesn't seem to be allowed, whereas 
> > {{hyphenated|-page}}links is.
> 
> I couldn't come up with a good pattern that allowed the hyphen without also
> allowing multi-hyphens (e.g., hyphenated----page) or other complications.
> Plus one can always write {{hyphenated|-page}}-links to get the same result
> as the first.  I'll re-examine the pattern.
> --
> I had ended up with ((\\|(\s*|-?))|((\s*|-?)\\|)) which is ugly but seemed to work.

Not exactly, because in a larger context I need to be able to grab the 
hyphen as part of the parenthesized part before the "|" in order to display 
it in the link output.

I screwed up in my description of $Tlink earlier--I'll restate it
in the next message.

Pm





More information about the pmwiki-users mailing list