I am doing a evaluation/POC to see if Aspose will work for our needs. I am working from this example to replace text in a PDF Document:
I am using a RegEx. However, I need to do a Case Insensitive search.
I tried using the (?i) at the beginning of the Regular Expression String, but my tests are showing that is not working.
I also tried looking for the JavaDoc for the following Aspose classes:
Thinking that these may provide a way to set a Case Insensitive search, but I could not find any documentation for these classes.
If anyone could point me in the right direction, I would be very grateful.
I did resolve my issue. It turned out that the (?i) is being honored by Aspose's TextFragementAbsorber when a RegEx is used. So I am able to do case insensitive matching using the (?i) mode.
I just had a different unrelated issue with my RegEx and the word boundaries that caused me to believe that the (?i) mode wasn't working when indeed it was.
Thank you to anyone who looked at my post.
Thanks for your feedback. Its good to know that you have resolved your issue at your own and definitely your shared information can help some other community memeber facing similar issue.
Please feel free to contact us for any assistance.