Regular Expressions 101

Community Patterns

Community Library Entry

5

Regular Expression
PCRE (PHP <7.3)

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

Description

URL Description from Dr. M. G. @ Brookes

Submitted by anonymous - 10 years ago