Regular Expressions 101

Community Patterns

simple url to web site match

0

Regular Expression
ECMAScript (JavaScript)

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

Description

simple url to web site match (es6)

Submitted by anonymous - 7 years ago