Regular Expressions 101

Community Patterns

URL taking

0

Regular Expression
PCRE (PHP <7.3)

/
(?:(?:[A-Za-z]{3,9}:?:\/\/www\.?)|(?:[A-Za-z]{3,9}:?:\/\/))((?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)(?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*)?
/
ug

Description

Did in pkasko)

Submitted by anonymous - 5 years ago