We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Highlight text with hyphen character

hi how can highlight a text with hyphen ? like H-Farm i’ll attach to you pdf to highlight as you can see aspose can’t highlight text this one is the regular expression that i use


and this is the pdf



Thank you for contacting support.

You may search the text in a PDF document with different approaches using Aspose.PDF for .NET API as explained in Search and Get Text from Pages of a PDF Document and then you can highlight it as per your requirements. For validity of your different regular expressions, you may try any online RegEx tester utility.

In case you still face any problem, then please share narrowed down code snippet so that we may try to reproduce and investigate it in our environment.