Forum


Replies: 1   Views: 614
Searchandreplace searching regex and replacing
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 admin  · 10-01-2023 - 06:19

Hello,

searchAndReplace doesn't support searching regular expressions. In addition to the template methods, phpdocx includes DOCXPath to use XPath, but there's no method to do replacements using regular expressions. We have opened a task to add support in a future release of phpdocx.

Regards.