regex_program#

2026-03-11

19 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(unicode pattern, int flags)#

Create a program from a pattern.

For detils, see cudf::strings::regex_program::create().

Parameters#

patternstr

Regex pattern

flagsUniont[int, RegexFlags]

Regex flags for interpreting special characters in the pattern

Returns#

RegexProgram

A new RegexProgram