Cloud Data Loss Prevention (Cloud DLP) is now a part of Sensitive Data Protection. The API name remains the same: Cloud Data Loss Prevention API (DLP API). For information about the services that make up Sensitive Data Protection, see
Sensitive Data Protection overview.
Regex
Stay organized with collections
Save and categorize content based on your preferences.
Message defining a custom regular expression.
| JSON representation |
{
"pattern": string,
"groupIndexes": [
integer
]
} |
| Fields |
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.
|
groupIndexes[] |
integer
The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-30 UTC.
[null,null,["Last updated 2025-04-30 UTC."],[],[]]