[Pmwiki-users] Re: Author tracking questions

Patrick R. Michaud pmichaud
Sun Feb 1 07:25:54 CST 2004


On Sun, Feb 01, 2004 at 01:29:10PM +0100, Christian Ridderstr?m wrote:
> On Sat, 31 Jan 2004, Patrick R. Michaud wrote:
> > 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:]?

Not really... [:upper:] means any uppercase letter in the current locale,
which is generally set to ISO-8859-1 by default and includes '?'
as an uppercase letter.

> 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)$"

Good point, but I think I'd like the space to be optional, so that I can
sign as "--Pm".  So maybe something like "(?:^|\\s)--\\s?($UserNamePattern)\\$".

Pm



More information about the pmwiki-users mailing list