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 \ CustomInfoTypeMethods
__construct
Constructor.
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.
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.
var
string
$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.
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.
var
int[]
$this