Regular Expressions 101

Library entries

PHP URL Regex

Vote

1

Regular Expression
pcre

/
^(\s)(((http[s]?)(:\/\/))|(\/\/))(\w{1,})(.\w{2,5})(.\w{2,5})*?((\/)?)(\s)$
/

Description

Loading markdown...
Submitted by Max Maxymenko - 6 years ago