Find and replace not working in aspose words java

Hi,

I am using Apose Word java library to find and replace text in docx. It’s working for most cases but not able to replace (420) in the attached docx. I am able to replace other texts like 292, 158.
Can you please help?

FindReplaceOptions findReplaceOptions = new FindReplaceOptions();
findReplaceOptions.setDirection(FindReplaceDirection.FORWARD);
findReplaceOptions.setMatchCase(true);
findReplaceOptions.setFindWholeWordsOnly(true);

document.getRange().replace("420", "Quantity", findReplaceOptions);

test document.docx (13.9 KB)

@gkumar16
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25588

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-25588) have been fixed in this Aspose.Words for Java 23.9 update.