search method

Contents
[ ]

search

Searches a keyword in the document.

Returns

A collection of SearchResult objects; null if search isn’t supported.

def search(self, keyword):
    ...
Parameter Type Description
keyword System.String The keyword to search.

Example

The following example shows how to find a keyword in a document:

search

Searches a keyword in the document using search options (regular expression, match case, etc.).

Returns

A collection of SearchResult objects; null if search isn’t supported.

def search(self, keyword, options):
    ...
Parameter Type Description
keyword System.String The keyword to search.
options groupdocs.parser.options.SearchOptions The search options.

Example

The following example shows how to search with a regular expression in a document:

The following example shows how to search a text on pages:

See Also