Regular Expressions 101

Community Patterns

Compare Web URL

0

Regular Expression
PCRE (PHP <7.3)

/
^((http|https):\/\/)??(www[.])??([a-zA-Z0-9]|-)+?([.][a-zA-Z0-9(-|\/|=|#|@|=|&|!|?)??]+?)+?$
/
g

Description

Check the website url using pattern matcher

Submitted by Nirav Shah - 7 years ago