Regular Expressions 101

Community Patterns

GCP Project id check

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^[a-z][-a-z0-9]{4,28}[a-z0-9]{1}$
/
gm

Description

must be between 6 and 30 characters and can have lowercase letters, digits, or hyphens.It must start with a lowercase letter and end with a letter or number.

Submitted by anonymous - 2 years ago