[pmwiki-users] Can any of the form recipes do this?

Hans design5 at softflow.co.uk
Mon Apr 2 14:22:28 CDT 2007


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




More information about the pmwiki-users mailing list