Regular Expressions 101

Library entries

Regular expression for both IPv6 and IPv4 URL

Vote

-2

Regular Expression
pcre

/
(?=(([0-9a-fA-F]{4}):([0-9a-fA-F]{4}):([0-9a-fA-F]{4})::([0-9a-fA-F]{4}))|(^\s*(((https?(?![0-9][a-zA-Z]):)?(//)((w{3}?).)?)?)([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?\s*$))
/
regular expression

Description

Loading markdown...
Submitted by Henry Li - 8 years ago