[pmwiki-users] Fox replace and variable in regular expression

Hans design1 at softflow.uk
Fri Feb 19 12:13:29 CST 2016


> I would like to replace a variable word by great in a page. So I create the following form :

> (:fox test:)
> (:foxreplace target=Public.Test put=regex mark='/{$$word}/':)
> (:foxtemplate "great":)
> (:input text name='word':)
> (:input submit post:)
> (:foxend test:)

I think all you need to do is leave the regex delimiters out of the
form. Like this:

(:fox test:)
(:foxreplace target=Public.Test put=regex mark='{$$word}':)
(:foxtemplate "great":)
(:input text name='word':)
(:input submit post:)
(:foxend test:)


Best regards,
 Hans                         




More information about the pmwiki-users mailing list