Change record status: 
Project: 
Introduced in branch: 
11.x
Introduced in version: 
11.2.0
Description: 

A new config schema data type, called regex, has been added to core. As the name suggests, this constraint can be used to indicate that not just any string is allowed, but a string which is valid regex.

The default validation constraints can be found in the definition of the new regex data type:


# A valid regular expression.
regex:
  type: string
  label: 'Regular Expression'
  constraints:
    ValidRegex: ~

How to use?

Generally speaking:

Before
        paths:
          type: string
          label: 'Regular expression to match'
After
    paths:
      type: regex
      label: 'Regular expression to match'
Impacts: 
Module developers