Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
((http|https):\/\/)(([a-zA-Z0-9\\._-]+\.[A-z A-Z]{2,6})|([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}))(:[0-9]{1,4})*(\/[a-zA-Z0-9\&%\_\\.\/\-\~]*)?
/
gm

Description

no description available

Submitted by anonymous - 4 years ago