Regular Expressions 101

Library entries

URL

Vote

1

Regular Expression
pcre

/
(http|https)\:\/\/(?:(.+?)(?:\:(.+?))?\@)?((?:[\w-]+\.)+)([A-Za-z0-9]+)(?:\:(\d{2,5}))?((?:\/[\w-%.]*)+)?(\?(?:[\w-%&="'+,]+)?)?(\#(?:[^#]+)?)?
/

Description

Loading markdown...
Submitted by Vihan Bhargava - 7 years ago