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

\b(?i)h-farm\b

and this is the pdf

http://www.erreciweb.com/pdf-aspose.pdf

@francescoes

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.