[pmwiki-users] PTV Confusion.
sti at pooq.com
sti at pooq.com
Thu Sep 20 15:29:58 CDT 2007
Knut Alboldt wrote:
> Guillermo Calderon - INCO schrieb:
>> Stirling Westrup wrote:
>>> What are the legal characters in the name of a PTV? Looking at the regexes
>>> inside pmwiki.php (latest version), I see:
>>>
>>> $PageTextVarPatterns = array(
>>> 'var:' => '/^(:*\\s*(\\w[-\\w]*)\\s*:[ \\t]?)(.*)($)/m',
>>> '(:var:...:)' => '/(\\(: *(\\w[-\\w]*) *:(?!\\))\\s?)(.*?)(:\\))/s'
>>> );
>>>
>>> Am I reading that wrong, or doesn't [-\\w] match any word character plus '-'?
>>> The reason I ask is that I can get simple PTV's to work, but not those that
>>> contain '-' in the names. I wish to have a bunch of entries like:
>
> I also miss the "Umlaute" öäü etc (ae oe etc). In german pmwiki-pages,
> variable-names containing these letters are quite usefull.
>
I thought that the whole point of the \\w was that it matched characters found
in words for the current locale setting. What is your locale set to on your wiki?
More information about the pmwiki-users
mailing list