Hi,
I have a document that I want replace variables, the problem is that I want use "my variable" instead of basic docx4j variables. My variable are in the format $var$.
I try to adapt that exemple: https://github.com/plutext/docx4j/blob/master/src/samples/docx4j/org/docx4j/samples/VariableReplaceStAX.java
But I have a problem when I calculate the index of the keyEnd because this is the same symbol so it's return a negative value and doesn't replace the variable.
There's a trick to use the same symbol at the beginning and the end of my variable ?
Thank's