On Mon, Feb 15, 2010 at 10:03 PM, dan mcmullen <[email protected]> wrote:
> my question is whether there are any potential problems with this
> approach that i am missing?

Seems reasonable to me, but I'll let others with deeper knowledge comment there.

> ps- and...  can anyone explain the "(?>(\\L))" bit of the regex above?
> it seems to match the "prefix:" bit of a link, but i can't find any
> documentation on \L.

The \L is not related to PCRE -- it is simply \L.  This is kind of an
intermediate form (as I understand) that gets replaced with
$LinkPattern in BuildMarkupRules() in pmwiki.php.  I'm not sure why
$LinkPattern isn't used directly from the start...?  I see
$LinkPattern isn't initialized until after stdmarkup.php is loaded --
maybe there's some inter-relationship there that makes earlier
initialization of $LinkPattern awkward and so it's easier to have the
intermediate \L?

-Peter

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to