---
title: Passcode.CustomRegex
framework: devicemanagement
role: symbol
role_heading: Device Management Profile
path: devicemanagement/passcode/customregex-data.dictionary
---

# Passcode.CustomRegex

The regex defining the passcode policy.

## Declaration

```data
object Passcode.CustomRegex
```

## Properties

passwordContentDescription: Contains a dictionary of keys for supported OS language IDs (for example, “en-US”), and whose values represent a localized description of the policy enforced by the regular expression. Use the special default key can for languages that aren’t contained in the dictionary. passwordContentRegex: A regular expression string that the system matches against the password to determine whether it complies with a policy. The regular expression uses the ICU syntax (https://unicode-org.github.io/icu/userguide/strings/regexp.html). The string must not exceed 2048 characters in length.

## Topics

### Objects

- [Passcode.CustomRegex.PasswordContentDescription](devicemanagement/passcode/customregex-data.dictionary/passwordcontentdescription-data.dictionary.md)
