Data Loss Prevention V2 Client - Class Regex (1.8.6)

Reference documentation and code samples for the Data Loss Prevention V2 Client class Regex.

Message defining a custom regular expression.

Generated from protobuf message google.privacy.dlp.v2.CustomInfoType.Regex

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ pattern string

Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.

↳ group_indexes array

The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.

getPattern

Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.

Returns
TypeDescription
string

setPattern

Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGroupIndexes

The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setGroupIndexes

The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this