regex_program#

2026-03-11

1 min read time

Applies to Linux

class pylibhipdf.strings.regex_program.RegexProgram(*args, **kwargs)#

Bases: object

Regex program class.

This is the Cython representation of cudf::strings::regex_program.

Do not instantiate this class directly, use the create method.

__init__(*args, **kwargs)#
static create(str pattern, regex_flags flags)#

Create a program from a pattern.

For detils, see create().

Parameters#

patternstr

Regex pattern

flagsRegexFlags

Regex flags for interpreting special characters in the pattern

Returns#

RegexProgram

A new RegexProgram