Regex example: Matching medical record numbers. The following sample uses a regular expression custom infoType detector that instructs Cloud DLP to match a medical record number (MRN) in the input text "Patient's MRN 444-5-22222," and then assigns each match a likelihood of POSSIBLE.
Documentation pages that include this code sample
To view the code sample used in context, see the following documentation:
Code sample
Java
To learn how to install and use the client library for Cloud DLP, see the Cloud DLP Client Libraries.
What's next
To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser