RegexResult

Overview

RegexResult is a class in Aspose.PDF FOSS for Python.

Wraps a single regular-expression match found on a PDF page.

This class provides 1 method for working with RegexResult objects in Python programs. Available methods include: __init__. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: end, groups, match, page_index, start, text.

Properties

NameTypeAccessDescription
page_indexintReadGets the page index.
matchre.MatchReadGets the match.
textstrReadGets the text.
startintReadGets the start.
endintReadGets the end.
groupstupleReadGets the groups.

Methods

SignatureDescription
__init__(match: re.Match, page_index: int)Calls init(match, page_index) on this RegexResult instance.

See Also