Uuid::VALID_PATTERN

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Uuid/Uuid.php \Drupal\Component\Uuid\Uuid::VALID_PATTERN
  2. 8.9.x core/lib/Drupal/Component/Uuid/Uuid.php \Drupal\Component\Uuid\Uuid::VALID_PATTERN
  3. 10 core/lib/Drupal/Component/Uuid/Uuid.php \Drupal\Component\Uuid\Uuid::VALID_PATTERN

The pattern used to validate a UUID string.

File

core/lib/Drupal/Component/Uuid/Uuid.php, line 13

Class

Uuid
UUID Helper methods.

Namespace

Drupal\Component\Uuid

Code

const VALID_PATTERN = '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.