Replies: 5   Views: 1054
Placeholders are split across xml nodes
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by bkdl  · 01-09-2021 - 14:29

Thanks for the quick reply.

I should have mentioned that we have customized those fields already according to the docs. All variable replacement works, except when it is split across nodes as shown previously. Is there anything I'm missing with this regex? (We're using `#` as our block identifier.)

CreateDocxFromTemplate::$regExprVariableSymbols = '\{\{(?:#){0,1}(?:[A-Z0-9\s\-_])+\}\}';

Is it perhaps that we're allowing a space character in our variables?