Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(http|https):\/\/[a-zA-Z][a-zA-Z0-9-.]+(:[0-9]{1,5})?
/

Description

Regex to validate a Access-Control-Allow-Origin value

Submitted by anonymous - 9 years ago