Regular Expressions 101

Community Patterns

Secret Key validation with slash, hyphen, underscore

0

Regular Expression
PCRE (PHP <7.3)

/
^[a-zA-Z0-9\/]+(?:[\w -]*[a-zA-Z0-9\/]+)*$
/
gm

Description

Match alphanumeric with / - _

Submitted by Shubham Thakre - 2 years ago