[Pmwiki-users] Re: Author tracking questions

Christian Ridderström chr
Sun Feb 1 05:30:31 CST 2004


On Sat, 31 Jan 2004, Patrick R. Michaud wrote:

> On Sun, Feb 01, 2004 at 12:45:53AM +0100, Christian Ridderstr?m wrote:
> 
> > It'd be nice if '-- Christian' at the end of a line would automatically 
> > link to say Users.Christian.
> 
> I think this might be done (by default?) with a DoubleBrackets entry--
> I'll see what I can do.  Is the regex "--\\s*[[:upper:]][\\w-]+$"
> sufficient?  Could it match more than we intend?

What if my name as '?ke' (Swedish name) --- have you redefined [:upper:]?

Note sure I like '\\s*' since I dont think we want the following to match:

  asfasdfasfas    --               AnyText

I don't think there's anything wrong in requiring exactly one space 
between '--' and the name. And we probably want either a space before the 
'--', or nothing, i.e.    "(?:^|\\s)--\\s($UserNamePattern)$"

/Christian

-- 
Christian Ridderstr?m                           http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list