[pmwiki-users] inline images with spaces in filename

Peter Bowers pbowers at pobox.com
Tue Feb 16 01:46:32 CST 2010


On Mon, Feb 15, 2010 at 10:03 PM, dan mcmullen <bang at bangzero.org> 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



More information about the pmwiki-users mailing list