Monday, April 2, 2007, 8:08:40 PM, Patrick wrote:
> If Fox is sticking with single curlies, your best bet would be to
> match alphanumerics only, with:
> /(?<!\\{)\\{(\\w+)\\}/e
> You need the initial (?<!\\{) to prevent the pattern from matching {{var}}.
This illustrates the problem nicely!
I needed not to exclude the {{ , because of trying to substitute a
field var in {{target}$:TextVar}
Here {target} gets replaced by a pagename, to meet the
{PageName$:TextVar} var markup.
But by not excluded it I include {{var}}.
So changing everything to {$$var} maybe the best really. Thanks!
What is the allowed name pattern for input field names?
~Hans
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users