Initializes a new instance of the SearchOptions class which is used to search with the highlight options for the left and the right highlight extraction.
Initializes a new instance of the SearchOptions class which is used to search with the same highlight options for the left and the right highlight extraction.
The value indicating whether a regular expression is used.
Example
fromgroupdocs.parserimportParserfromgroupdocs.parser.optionsimportSearchOptionswithParser("sample.pdf")asparser:# match_case, match_whole_word, use_regular_expression, search_by_pagesoptions=SearchOptions(False,False,False,True)results=parser.search("lorem",options)ifresultsisNone:print("Search isn't supported for this format.")else:forresultinresults:print(f"Found on page {result.page_index+1}: {result.text}")