Data Loss Prevention V2 Client - Class Regex (2.2.0)

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

Namespace

Google \ Cloud \ Dlp \ V2 \ CustomInfoType

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var int[]
Returns
Type Description
$this