[pmwiki-users] PageTextVariable: own "automatic variable" format

Knut Alboldt pmwiki at alboldt.de
Tue Mar 20 05:28:11 CDT 2007


Hi !

I've been using a line like:

any varname:: value text

to define variables (or fields) within a page. I like the new concept of 
pagetextvariables but I dont want to change all of my pages to lines like

:any varname: value text

or

any varname: value text

I tried to add "my" format using the following statement:

$PageTextVarPatterns['var::'] = '/^([a..zA..Z_-\/]*)\\s*::[ \\t]?(.*)$/m';

but that doesn't work
(I know, it wouldn't match "any word" only "any_word" but i tried this 
one as a start.)

And how can I suppress trailing spaces in the value-part ?

Can anybody please help ?

Thanks

Knut



More information about the pmwiki-users mailing list