Regular Expressions 101

Library entries

extract hostname

Vote

2

Regular Expression
pcre

/
^(?:http|ftp)s?:\/\/([\w][^\/=\s]+)\/?|(^w{3}[\.\w][^\/\=\s]{2,})\/?
/
mg

Description

Loading markdown...
Submitted by Kristine Poghosyan - 6 years ago